/*
Theme Name: Love-and-Sing-v2
Author: LS
Version: 1.0
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding-top: 170px !important; /* Ruang agar isi halaman tidak tertutup header */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ==========================================
   📌 STICKY HEADER RAINBOW (DIBENAHI TOTAL)
   ========================================== */

.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important; /* Mengikuti tinggi konten secara eksplisit */
    padding: 16px 0 16px 0 !important; /* Perbaikan syntax error !; menjadi !important */
    
    /* Gradien Pelangi Penuh dari Atas ke Bawah */
    background: linear-gradient(
        to bottom, 
        #ff2a2a 0%, 
        #ff7f00 16%, 
        #ffea00 33%, 
        #00e676 50%, 
        #00b0ff 66%, 
        #651fff 83%, 
        #aa00ff 100%
    ) !important;
    
    z-index: 99999 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Container pembungkus di dalam header */
.header-container, 
.site-header .container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    display: flex !important;
    flex-direction: column !important; /* Menyusun secara vertikal: Judul -> Tagline -> Navigasi */
    align-items: center !important;    /* Rata tengah horizontal */
    justify-content: center !important;
    text-align: center !important;
}

/* Fix Judul "Love And Sing" agar tidak terdorong ke atas */
.site-header .site-title {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    display: block !important;
}

.site-header .site-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-shadow: 
        0px 2px 4px rgba(0, 0, 0, 0.9),
        0px 0px 10px rgba(0, 0, 0, 0.7) !important;
}

/* Fix Tagline / Slogan "Echoes from the Unseen" */
.site-header .site-tagline {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    display: block !important;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.9) !important;
}

.site-logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Styling Navigasi Menu agar menyatu di dalam header pelangi */
.site-header .main-navigation {
    width: 100% !important;
    margin-top: 4px !important;
}

.site-header .main-navigation ul {
    list-style: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-header .main-navigation li {
    margin: 0 !important;
    padding: 0 !important;
}

.site-header .main-navigation a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    background: rgba(0, 0, 0, 0.45) !important; /* Latar tombol transparan agar terbaca jelas */
    padding: 6px 14px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    transition: all 0.2s ease-in-out !important;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.8) !important;
}

.site-header .main-navigation a:hover {
    background: rgba(0, 0, 0, 0.8) !important;
    color: #ffee00 !important;
}

/* Override Text Shadow Bawaan */
header, .site-header, 
header a, .site-header a, 
header p, .site-header p,
header span, .site-header span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Badge Cart */
.main-navigation .cart-badge {
    background-color: #e63946;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 50%;
    margin-left: 4px;
    display: inline-block;
    line-height: 1;
    text-shadow: none !important;
}

.main-navigation .menu-item-cart a {
    display: flex;
    align-items: center;
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Audio Player Settings */
audio {
    width: 100%;
    margin: 10px 0;
}

/* Form Search & Filter */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.filter-form input[type="text"],
.filter-form select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    min-width: 150px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.btn-danger { background: #cc0000; }
.btn-success { background: #28a745; }

/* Table Cart */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-bottom: 20px;
}

.cart-table th, .cart-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

/* Pagination */
.pagination {
    margin-top: 30px;
    display: flex;
    gap: 10px;
}

.pagination .page-numbers {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Footer */
footer, .site-footer {
    background: linear-gradient(135deg, #232526, #414345) !important;
    color: #ffffff !important;
    padding: 30px 0;
    margin-top: 50px;
}

.site-footer ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 190px !important;
    }
    
    .site-header .container {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }
    
    .filter-form {
        flex-direction: column;
    }
}