/*
Theme Name: Seputar Media (Spotify Green & Black with Customizer & Ad Banner)
Author: Gemini
Description: Tema portal berita mobile-optimized dengan integrasi WordPress Customizer untuk pengaturan Banner Iklan ukuran 332x560 dan Banner Logo, bernuansa Spotify.
Version: 3.3
*/

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #b3b3b3;
}

.site-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #121212;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

/* --- HEADER TOP --- */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #282828;
    background-color: #000000;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo h1 a,
.logo h1 a:link,
.logo h1 a:visited {
    color: #ffffff !important;
    text-decoration: none;
}

.logo-badge {
    background-color: #1DB954;
    color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 2px;
}

/* --- AJAX SEARCH HEADER (TOP CENTER) --- */
.header-search-container {
    position: relative;
    flex: 1;
    max-width: 380px;
    margin: 0 20px;
}

.header-search-input {
    width: 100%;
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 20px;
    padding: 8px 15px 8px 38px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.header-search-input:focus {
    border-color: #1DB954;
    background-color: #222222;
}

.header-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    font-size: 13px;
    pointer-events: none;
}

.ajax-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.8);
    z-index: 9999;
    max-height: 350px;
    overflow-y: auto;
    display: none;
}

.ajax-search-item {
    display: flex;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid #282828;
    text-decoration: none;
    align-items: center;
    transition: background-color 0.2s;
}

.ajax-search-item:last-child {
    border-bottom: none;
}

.ajax-search-item:hover {
    background-color: #242424;
}

.ajax-search-thumb {
    width: 45px;
    height: 35px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.ajax-search-title {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.3;
}

.login-btn a {
    background-color: #1DB954;
    color: #000000;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.2s;
}

.login-btn a:hover {
    background-color: #1ed760;
}

/* --- MAIN NAV SCROLLABLE & CENTERED --- */
.main-nav {
    border-bottom: 1px solid #282828;
    background-color: #121212;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    text-align: center;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav ul {
    list-style: none;
    padding: 0 20px;
    margin: 0;
    display: inline-flex;
    justify-content: center;
    gap: 25px;
}

.main-nav a {
    text-decoration: none;
    color: #b3b3b3;
    font-weight: bold;
    font-size: 14px;
    padding: 14px 0;
    display: block;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav li.current-menu-item a,
.main-nav li.active a {
    color: #ffffff;
    border-bottom: 3px solid #1DB954;
}

/* --- MAIN CONTENT LAYOUT --- */
.main-layout {
    display: flex;
    gap: 30px;
    padding: 20px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar-area {
    width: 340px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: stretch;
    }
    .header-search-container {
        max-width: 100%;
        margin: 0;
    }
    .main-layout {
        flex-direction: column;
        padding: 15px;
    }
    .sidebar-area {
        width: 100%;
    }
    .main-nav {
        text-align: left;
    }
    .main-nav ul {
        justify-content: flex-start;
    }
}

/* --- FEATURED HERO POST --- */
.featured-hero {
    margin-bottom: 25px;
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.featured-hero-thumb {
    position: relative;
}

.featured-hero-thumb img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.featured-hero-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    pointer-events: none;
}

.featured-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
}

.featured-hero-meta {
    font-size: 12px;
    color: #1DB954;
    margin-bottom: 6px;
    font-weight: 600;
}

.featured-hero-overlay h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.35;
}

.featured-hero-overlay h2 a,
.featured-hero-overlay h2 a:link,
.featured-hero-overlay h2 a:visited {
    color: #ffffff !important;
    text-decoration: none;
}

.featured-hero-overlay h2 a:hover {
    color: #1DB954 !important;
    text-decoration: underline;
}

/* --- GRID POSTS SECTION --- */
.grid-posts-section {
    margin-top: 25px;
}

.grid-posts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (max-width: 480px) {
    .grid-posts-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.grid-post-item {
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.grid-post-thumb {
    position: relative;
}

.grid-post-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.grid-post-thumb::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
}

.grid-post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 2;
}

.grid-post-meta {
    font-size: 10px;
    color: #1DB954;
    margin-bottom: 4px;
    font-weight: 600;
}

.grid-post-overlay h4 {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.grid-post-overlay h4 a,
.grid-post-overlay h4 a:link,
.grid-post-overlay h4 a:visited {
    color: #ffffff !important;
    text-decoration: none;
}

.grid-post-overlay h4 a:hover {
    color: #1DB954 !important;
    text-decoration: underline;
}

/* --- SIDEBAR WIDGETS --- */
.sidebar-widget {
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    margin-top: 0;
    font-size: 18px;
    color: #ffffff;
    border-left: 4px solid #1DB954;
    padding-left: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.sidebar-search-container {
    position: relative;
}

.sidebar-search-input {
    width: 100%;
    background-color: #121212;
    border: 1px solid #282828;
    border-radius: 6px;
    padding: 10px 12px 10px 35px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}

.sidebar-search-input:focus {
    border-color: #1DB954;
}

.sidebar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
    font-size: 13px;
    pointer-events: none;
}

.popular-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.popular-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-start;
    border-bottom: 1px solid #282828;
    padding-bottom: 15px;
}

.popular-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.popular-number {
    font-size: 28px;
    font-weight: 900;
    color: #1DB954;
    line-height: 1;
    min-width: 30px;
    text-align: center;
}

.popular-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.35;
}

.popular-details h4 a,
.popular-details h4 a:link,
.popular-details h4 a:visited {
    color: #ffffff !important;
    text-decoration: none;
}

.popular-time {
    font-size: 11px;
    color: #b3b3b3;
}

/* --- BANNER IKLAN WIDGET (Ukuran 332x560 dari Customizer) --- */
.ad-banner-widget {
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

.ad-banner-container {
    width: 332px;
    max-width: 100%;
    height: 560px;
    margin: 0 auto;
    background-color: #121212;
    border: 1px dashed #282828;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.ad-banner-container img,
.ad-banner-container iframe,
.ad-banner-container script {
    width: 332px !important;
    height: 560px !important;
    object-fit: cover;
    display: block;
}

/* --- SINGLE ARTICLE --- */
.single-article .post-thumbnail {
    margin-bottom: 20px;
    position: relative;
}

.single-article .post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.single-image-caption {
    font-size: 13px;
    color: #bbbbbb;
    font-style: italic;
    margin-top: 8px;
    padding-left: 8px;
    border-left: 3px solid #1DB954;
    line-height: 1.4;
}

.site-content h1.single-title,
.site-content h1.single-title a,
.site-content h1.single-title a:link,
.site-content h1.single-title a:visited {
    color: #ffffff !important;
    font-size: 26px;
    margin-top: 0;
    line-height: 1.3;
}

.site-content h2 {
    color: #ffffff !important;
    font-size: 20px;
    margin-top: 25px;
    border-bottom: 1px solid #282828;
    padding-bottom: 6px;
}

.site-content h3 {
    color: #ffffff !important;
    font-size: 16px;
    margin-top: 20px;
}

.site-content p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #b3b3b3;
}

/* --- TABLE OF CONTENTS --- */
.toc-box {
    background-color: #181818;
    border: 1px solid #282828;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.toc-box h3 {
    margin: 0 0 10px 0;
    color: #1DB954;
    font-size: 15px;
}

.toc-box ul {
    margin: 0;
    padding-left: 20px;
}

.toc-box li {
    margin-bottom: 5px;
}

.toc-box a {
    color: #b3b3b3;
    text-decoration: none;
}

.toc-box a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* --- FOOTER --- */
.site-footer {
    background: #000000;
    color: #b3b3b3;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #282828;
    font-size: 13px;
}
