:root {
    --berita-bg: #020b16;
    --berita-card: rgba(7, 19, 33, 0.78);
    --berita-stroke: rgba(255, 255, 255, 0.08);
    --berita-text: #e6f4ff;
    --berita-muted: rgba(230, 244, 255, 0.75);
    --berita-accent: #3b82f6;
    --berita-accent-alt: #2563eb;
    --berita-shadow: 0 25px 55px rgba(4, 20, 40, 0.45);
    --berita-radius: 0;
}

body {
    background: var(--berita-bg);
    color: var(--berita-text);
}

/* Hero Section */
.berita-hero {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), transparent),
        linear-gradient(135deg, rgba(10, 22, 40, 0.95), rgba(26, 47, 74, 0.95));
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.berita-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/icon-hero.jpeg') center/cover;
    opacity: 0.05;
    mix-blend-mode: screen;
    pointer-events: none;
}

.berita-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.berita-hero__content {
    position: relative;
    z-index: 1;
}

.berita-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 999px;
    color: var(--berita-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.berita-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px;
    color: var(--berita-text);
}

.berita-hero__meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.berita-hero__meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--berita-muted);
    font-size: 0.9rem;
}

.berita-hero__meta .meta-item i {
    color: var(--berita-accent);
}

.berita-hero__visual {
    position: relative;
    z-index: 1;
}

.berita-hero__image-wrapper {
    position: relative;
    border-radius: var(--berita-radius);
    overflow: hidden;
    border: 1px solid var(--berita-stroke);
    box-shadow: var(--berita-shadow);
}

.berita-hero__image-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.berita-hero__bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.berita-hero__bubbles span {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.berita-hero__bubbles span:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.berita-hero__bubbles span:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    width: 40px;
    height: 40px;
}

.berita-hero__bubbles span:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    width: 80px;
    height: 80px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
}

/* Empty State */
.berita-empty {
    padding: 80px 0;
    background: var(--berita-bg);
}

.berita-empty__card {
    background: var(--berita-card);
    border: 1px solid var(--berita-stroke);
    border-radius: var(--berita-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--berita-shadow);
    max-width: 600px;
    margin: 0 auto;
}

.berita-empty__icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--berita-accent), var(--berita-accent-alt));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2.5rem;
    color: white;
}

.berita-empty h2 {
    margin: 0 0 12px;
    font-size: 1.75rem;
    color: var(--berita-text);
}

.berita-empty p {
    margin: 0 0 32px;
    color: var(--berita-muted);
}

.berita-empty__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--berita-accent), var(--berita-accent-alt));
    border: 1px solid var(--berita-accent);
    border-radius: var(--berita-radius);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.berita-empty__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Main Content */
.berita-main {
    background: var(--berita-bg);
    padding: 40px 0;
}

.berita-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
    align-items: start;
}

.berita-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Article */
.berita-article {
    background: var(--berita-card);
    border: 1px solid var(--berita-stroke);
    border-radius: var(--berita-radius);
    padding: 40px;
    box-shadow: var(--berita-shadow);
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--berita-text);
}

.berita-article p {
    margin-bottom: 18px;
}

.berita-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--berita-radius);
    border: 1px solid var(--berita-stroke);
    margin: 24px 0;
}

.berita-article h1,
.berita-article h2,
.berita-article h3,
.berita-article h4,
.berita-article h5,
.berita-article h6 {
    color: var(--berita-text);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.berita-article h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--berita-stroke);
    padding-bottom: 12px;
}

.berita-article h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--berita-stroke);
    padding-bottom: 8px;
}

.berita-article h3 {
    font-size: 1.5rem;
}

.berita-article h4 {
    font-size: 1.25rem;
}

.berita-article ul,
.berita-article ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--berita-text);
}

.berita-article li {
    margin: 8px 0;
    color: var(--berita-text);
}

.berita-article a {
    color: var(--berita-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.berita-article a:hover {
    color: var(--berita-accent-alt);
}

.berita-article blockquote {
    border-left: 4px solid var(--berita-accent);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--berita-muted);
    font-style: italic;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--berita-radius);
}

.berita-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--berita-stroke);
}

.berita-article table th,
.berita-article table td {
    padding: 12px;
    border: 1px solid var(--berita-stroke);
    text-align: left;
}

.berita-article table th {
    background: rgba(59, 130, 246, 0.1);
    color: var(--berita-text);
    font-weight: 600;
}

.berita-article table td {
    color: var(--berita-text);
}

.berita-article code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--berita-accent);
    border: 1px solid var(--berita-stroke);
}

.berita-article pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: var(--berita-radius);
    overflow-x: auto;
    border: 1px solid var(--berita-stroke);
    margin: 20px 0;
}

.berita-article pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: var(--berita-text);
}

.berita-article hr {
    border: none;
    border-top: 1px solid var(--berita-stroke);
    margin: 24px 0;
}

.berita-article strong {
    color: var(--berita-text);
    font-weight: 700;
}

.berita-article em {
    color: var(--berita-muted);
    font-style: italic;
}

/* Share Section */
.berita-share {
    background: var(--berita-card);
    border: 1px solid var(--berita-stroke);
    border-radius: var(--berita-radius);
    padding: 24px;
    box-shadow: var(--berita-shadow);
}

.berita-share__title {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--berita-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.berita-share__title i {
    color: var(--berita-accent);
}

.berita-share__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn--facebook {
    background: #1877f2;
    color: #fff;
}

.share-btn--facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.share-btn--twitter {
    background: #1d9bf0;
    color: #fff;
}

.share-btn--twitter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 155, 240, 0.3);
}

.share-btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.share-btn--whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.share-btn--copy {
    background: rgba(0, 0, 0, 0.3);
    color: var(--berita-text);
    border: 1px solid var(--berita-stroke);
}

.share-btn--copy:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--berita-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
}

.share-btn--success {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
}

/* Comments Section */
.berita-comments {
    background: var(--berita-card);
    border: 1px solid var(--berita-stroke);
    border-radius: var(--berita-radius);
    padding: 24px;
    box-shadow: var(--berita-shadow);
}

.berita-comments__title {
    margin: 0 0 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--berita-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.berita-comments__title i {
    color: var(--berita-accent);
}

.berita-comments__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--berita-text);
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--berita-accent);
}

.form-group input,
.form-group textarea {
    border-radius: var(--berita-radius);
    border: 1px solid var(--berita-stroke);
    background: rgba(0, 0, 0, 0.3);
    color: var(--berita-text);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--berita-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--berita-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.berita-comments__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid var(--berita-stroke);
    border-radius: var(--berita-radius);
    background: rgba(0, 0, 0, 0.3);
    color: var(--berita-muted);
    font-weight: 600;
    cursor: not-allowed;
    opacity: 0.5;
    font-size: 0.95rem;
}

/* Sidebar */
.berita-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.berita-sidebar__card {
    background: var(--berita-card);
    border: 1px solid var(--berita-stroke);
    border-radius: var(--berita-radius);
    padding: 24px;
    box-shadow: var(--berita-shadow);
}

.berita-sidebar__title {
    margin: 0 0 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--berita-text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--berita-stroke);
}

.berita-sidebar__title i {
    color: var(--berita-accent);
}

.berita-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.berita-sidebar__item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--berita-stroke);
    border-radius: var(--berita-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.berita-sidebar__item:hover {
    transform: translateX(4px);
    border-color: var(--berita-accent);
    background: rgba(59, 130, 246, 0.1);
}

.berita-sidebar__item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--berita-radius);
    overflow: hidden;
    border: 1px solid var(--berita-stroke);
}

.berita-sidebar__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.berita-sidebar__item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.berita-sidebar__item-date {
    font-size: 0.75rem;
    color: var(--berita-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.berita-sidebar__item-date i {
    color: var(--berita-accent);
}

.berita-sidebar__item-content h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--berita-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.berita-sidebar__info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-item i {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--berita-accent);
    flex-shrink: 0;
}

.info-item > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--berita-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-value {
    font-size: 0.9rem;
    color: var(--berita-text);
    font-weight: 600;
}

.info-value--small {
    font-size: 0.75rem;
    word-break: break-all;
}

.berita-sidebar__back {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--berita-accent), var(--berita-accent-alt));
    border: 1px solid var(--berita-accent);
    border-radius: var(--berita-radius);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.berita-sidebar__back:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .berita-wrapper {
        grid-template-columns: 1fr;
    }

    .berita-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    /* Adjust untuk fixed header */
    .berita-hero {
        padding: 100px 0 30px;
        margin-top: 0;
    }

    .berita-hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .berita-hero__visual {
        order: -1;
    }

    .berita-hero__image-wrapper img {
        height: 200px;
    }

    .berita-article {
        padding: 20px;
        font-size: 0.95rem;
    }

    .berita-share__buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    .berita-wrapper {
        gap: 24px;
    }
    
    .berita-sidebar__card {
        padding: 20px;
    }
    
    .berita-sidebar__item {
        padding: 10px;
    }
    
    .berita-sidebar__item-image {
        width: 60px;
        height: 60px;
    }
}
