/*
 * File: assets/css/style.css
 * Versi: 7.1 (Zenith Theme - Edisi Animasi & Gradien Penuh)
 * Deskripsi: Penambahan animasi halus, gradien, dan efek interaktif.
 */

/* =================================================================
   1. Konfigurasi Font & Palet Warna "Zenith"
   ================================================================= */
:root {
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Source Sans Pro', sans-serif;
  
  /* Palet Warna dengan Aksen Gradien Baru */
  --color-background: #121212;
  --color-surface: #1E1E1E;
  --color-primary: #FF6B00;
  --color-primary-dark: #E05E00;
  --color-secondary: #ffA500; /* Warna sekunder untuk gradien */
  --color-text: #EAEAEA;
  --color-text-muted: #888888;
  --color-border: rgba(255, 255, 255, 0.1);
  
  /* Efek Baru */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 8px 25px rgba(255, 107, 0, 0.35); /* Bayangan untuk elemen utama */
  --border-radius: 12px;
  --gradient-primary: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transisi lebih halus */
}

/* =================================================================
   2. Reset & Konfigurasi Global
   ================================================================= */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 25px;
}

/* =================================================================
   3. Header "Frosted Glass" & Navigasi
   ================================================================= */
.site-header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background-color: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.site-header .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.site-header .logo:hover {
  transform: scale(1.05);
}

.site-header .logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Aturan Default untuk Mobile */
.site-header .main-nav, .site-header .user-area { 
  display: none; 
}

.mobile-menu-toggle {
  display: block;
  background: none; 
  border: none; 
  font-size: 28px; 
  cursor: pointer;
  color: var(--color-text); 
  z-index: 1002; 
  padding: 0;
  width: 30px; 
  height: 24px; 
  position: relative;
  transition: var(--transition-smooth);
}

/* Aturan untuk Desktop */
@media (min-width: 992px) {
  .site-header .main-nav { 
    display: flex; 
    gap: 35px; 
  }
  .site-header .main-nav a { 
    color: var(--color-text-muted); 
    font-weight: 600; 
    text-decoration: none; 
    position: relative; 
    padding-bottom: 5px;
    transition: color 0.3s ease;
  }
  .site-header .main-nav a::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 3px; 
    background: var(--gradient-primary); 
    border-radius: 3px;
    transition: width 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }
  .site-header .main-nav a:hover { 
    color: var(--color-text); 
  }
  .site-header .main-nav a:hover::after { 
    width: 100%; 
  }
  
  .site-header .user-area { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
  }
  .site-header .user-area .login-link { 
    color: var(--color-text-muted); 
    font-weight: 600; 
    text-decoration: none; 
    transition: color 0.3s ease;
  }
  .site-header .user-area .login-link:hover { 
    color: var(--color-text); 
  }
  
  .mobile-menu-toggle { 
    display: none; 
  }
}

/* Tombol Hamburger */
.hamburger-icon {
  display: block; 
  width: 100%; 
  height: 3px; 
  background-color: var(--color-text);
  position: absolute; 
  top: 50%; 
  left: 0; 
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.hamburger-icon::before, .hamburger-icon::after {
  content: ''; 
  display: block; 
  width: 100%; 
  height: 3px;
  background-color: var(--color-text); 
  position: absolute; 
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-icon::before { top: -10px; }
.hamburger-icon::after { bottom: -10px; }
body.menu-open .hamburger-icon { background-color: transparent; }
body.menu-open .hamburger-icon::before { top: 0; transform: rotate(45deg); }
body.menu-open .hamburger-icon::after { bottom: 0; transform: rotate(-45deg); }


/* Overlay Menu Mobile */
.mobile-nav-overlay {
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background-color: var(--color-background);
  z-index: 1001;
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.mobile-nav-overlay nav { 
  display: flex; 
  flex-direction: column; 
  text-align: center; 
  gap: 25px; 
}

.mobile-nav-overlay nav a { 
  font-size: 28px; 
  color: var(--color-text); 
  font-weight: 600; 
  text-decoration: none; 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-overlay.open nav a {
  opacity: 1;
  transform: translateY(0);
}

/* Memberi delay animasi pada setiap item menu mobile */
.mobile-nav-overlay.open nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.open nav a:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-overlay.open nav a:nth-child(3) { transition-delay: 0.3s; }

.mobile-nav-overlay .user-area-mobile { 
  margin-top: 40px; 
  text-align: center; 
}

.mobile-nav-overlay .logout-link-mobile { 
  color: var(--color-text-muted); 
  margin-top: 20px; 
  display: inline-block; 
}


/* =================================================================
   4. Tombol dengan Efek Gradien & Interaktif
   ================================================================= */
.btn {
  display: inline-block; 
  padding: 12px 28px; 
  border-radius: 50px;
  font-weight: 700; 
  text-align: center; 
  cursor: pointer; 
  border: none; 
  text-decoration: none; 
  font-size: 15px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-primary { 
  background: var(--gradient-primary); 
  color: #fff; 
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover { 
  transform: translateY(-4px) scale(1.02); 
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.4); 
}
.btn:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 10px rgba(255, 107, 0, 0.2);
}

/* =================================================================
   5. HERO SECTION & SEARCH BAR (REFINED & POLISHED)
   ================================================================= */

/* --- Bagian Hero (Tidak Berubah, Sudah Bagus) --- */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-section {
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}
.hero-section h1 { animation: fadeInDown 0.8s ease-out both; }
.hero-section p { animation: fadeInDown 0.8s ease-out 0.2s both; }
.hero-section .search-container { animation: fadeInDown 0.8s ease-out 0.4s both; }
.section-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    margin: 0 auto;
    max-width: 800px;
}

/* --- Search Bar & Input (Disempurnakan) --- */
.search-container {
  position: relative;
}
.search-form-minimalist {
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--color-surface);
  border-radius: 50px;
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.search-form-minimalist:hover {
  border-color: rgba(255, 107, 0, 0.5); /* Efek border saat di-hover */
}
.search-form-minimalist:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.3);
}
.search-icon {
  position: absolute;
  left: 25px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 18px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  flex-grow: 1;
  border: none;
  background: none;
  outline: none;
  padding: 20px 25px 20px 60px;
  font-size: 18px;
  color: var(--color-text);
  font-family: var(--font-body);
}
.search-input::placeholder {
  color: var(--color-text-muted);
}

/* --- Autocomplete Dropdown (Disempurnakan) --- */
.autocomplete-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  z-index: 999;
  max-height: 350px;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  text-align: left; /* Pastikan teks rata kiri */
  display: none; /* Sembunyikan secara default */
}
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 15px; /* Jarak antara ikon dan teks */
  padding: 12px 20px;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover, .autocomplete-item:focus {
  background-color: rgba(255, 107, 0, 0.1);
  color: var(--color-primary);
  outline: none;
}
.autocomplete-item .item-text {
    flex-grow: 1;
    font-size: 1rem;
    font-weight: 500;
}
.autocomplete-item .autocomplete-item-type {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    background-color: var(--color-background);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
    white-space: nowrap; /* Mencegah label pindah baris */
}
.autocomplete-item:hover .autocomplete-item-type {
    background-color: var(--color-primary);
    color: #fff;
}
/* =================================================================
   6. Article Grid & Cards
   ================================================================= */
.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}

.article-card .card-image {
    position: relative;
    overflow: hidden; /* Penting untuk efek zoom pada gambar */
}

.article-card .card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.article-card .card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.article-card .card-content {
    padding: 20px;
}

.article-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 15px;
    min-height: 5rem;
}

.article-card .card-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}
.article-card:hover .card-title a {
    color: var(--color-primary);
}

.article-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
}

.article-card .card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.article-card .card-rating i {
    color: #f59e0b; /* Amber 500 */
}

/* =================================================================
   7. Footer
   ================================================================= */
.site-footer {
    background-color: var(--color-surface);
    padding: 60px 0 30px;
    margin-top: 80px;
    font-size: 15px;
    border-top: 3px solid;
    border-image-source: var(--gradient-primary);
    border-image-slice: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p, .footer-col li {
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul a:hover {
    color: var(--color-primary);
}

.footer-col .social-links {
    display: flex;
    gap: 20px;
}

.footer-col .social-links a {
    color: var(--color-text-muted);
    font-size: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-col .social-links a:hover {
    color: var(--color-primary);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 30px;
}

/* =================================================================
   8. Halaman Lain (Auth, Kategori, etc)
   ================================================================= */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.auth-box {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    text-align: center;
    border-top: 3px solid var(--color-primary);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.auth-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.auth-footer-link {
    margin-top: 25px;
    color: var(--color-text-muted);
}
.auth-footer-link a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer-link a:hover {
    text-decoration: underline;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: left;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #f87171;
}

.category-card {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card-image-wrapper {
    overflow: hidden;
}

.category-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image-wrapper img {
    transform: scale(1.1);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    text-align: center;
}

.category-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* =================================================================
   9. Halaman Profil (Modern Design)
   ================================================================= */

.profile-header-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Agar responsif di mobile */
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    flex-shrink: 0; /* Mencegah gambar menyusut */
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-username {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 5px;
}

.profile-joined {
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--color-background);
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    min-width: 100px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Tabs Styling */
.profile-content {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 30px;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 30px;
}

.tab-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab-link:hover {
    color: var(--color-text);
}

.tab-link.active {
    color: var(--color-primary);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: 50px 0;
    font-style: italic;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--color-background);
    border-radius: 8px;
}

.activity-icon {
    color: var(--color-primary);
}

.activity-text a {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}
.activity-text a:hover {
    text-decoration: underline;
}

.activity-time {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Badges Grid */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.badge-item {
    background: var(--color-background);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.badge-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.badge-icon {
    margin-bottom: 15px;
    color: #ccc; /* Default color */
}

/* Ganti warna ikon lencana sesuai kelasnya */
.badge-icon.badge-bronze { color: #cd7f32; }
.badge-icon.badge-silver { color: #c0c0c0; }
.badge-icon.badge-gold { color: #ffd700; }

.badge-name {
    display: block;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}

.badge-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Responsiveness for Profile Page */
@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }
    .profile-stats {
        justify-content: center;
    }
    .profile-username {
        font-size: 2rem;
    }
    .activity-item {
        flex-direction: column;
        gap: 10px;
    }
    .activity-time {
        margin-left: 0;
    }
}

/* =================================================================
   10. Avatar Upload Styling
   ================================================================= */

.profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none; /* Penting agar klik tetap bisa ke form */
}

.profile-avatar-wrapper:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-overlay i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* Sembunyikan input file asli */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Styling untuk Form Input di Admin Panel */
.form-input {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 10px 15px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}
.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}
.form-checkbox {
    border-radius: 4px;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    color: var(--color-primary);
}
.alert-success {
    background-color: rgba(22, 163, 74, 0.1);
    border: 1px solid #16a34a;
    color: #4ade80;
}
.alert ul {
    list-style-position: inside;
}

/* =================================================================
   11. Category Grid & Card Design (NEW)
   ================================================================= */

.category-grid {
    display: grid;
    /* Membuat 4 kolom di layar besar, 2 di tablet, dan 1 di mobile */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    display: block;
    position: relative;
    height: 200px; /* Memberi tinggi yang seragam pada kartu */
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.category-card-image {
    width: 100%;
    height: 100%;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar mengisi kartu tanpa distorsi */
    transition: transform 0.4s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.1); /* Efek zoom saat hover */
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1));
    transition: background-color 0.3s ease;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

.category-card-title {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* =================================================================
   12. Footer Links Styling (IMPROVED)
   ================================================================= */

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    /* Menghapus margin bawah agar padding pada link yang mengatur jarak */
    margin-bottom: 0;
}

.footer-col ul a {
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 8px 0; /* Memberi ruang napas vertikal pada setiap link */
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Menambahkan ikon chevron (›) sebelum setiap link */
.footer-col ul a::before {
    content: '›';
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 8px;
    transition: transform 0.2s ease;
}

/* Efek saat kursor diarahkan ke link */
.footer-col ul a:hover {
    color: var(--color-primary);
    transform: translateX(5px); /* Link sedikit bergeser ke kanan */
}

.footer-col ul a:hover::before {
    transform: scale(1.5); /* Ikon membesar */
}

/* =================================================================
   13. Static Page Content & Contact Form (NEW)
   ================================================================= */

.static-page-container {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 30px 40px;
    border-top: 3px solid var(--color-primary);
    margin-top: 2rem;
}

/* Styling untuk konten teks di halaman Tentang Kami & Kebijakan Privasi */
.static-page-container h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.static-page-container h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.static-page-container p, .static-page-container li {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.static-page-container ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.static-page-container a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.static-page-container a:hover {
    text-decoration: underline;
}

/* Styling khusus untuk Form Kontak */
.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.contact-form .form-input {
    width: 100%;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 12px 15px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.contact-form .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

.contact-form textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* =================================================================
   14. Privacy Policy Page Styling (NEW)
   ================================================================= */

.privacy-policy-section {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid var(--color-primary);
}

.privacy-policy-section h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.privacy-policy-section p, .privacy-policy-section li {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-policy-section ul {
    list-style: none; /* Hapus bullet point default */
    padding-left: 0;
}

.privacy-policy-section ul li {
    padding-left: 30px; /* Beri ruang untuk ikon */
    position: relative;
}

/* Menambahkan ikon centang sebelum setiap item list */
.privacy-policy-section ul li::before {
    content: '✔'; /* Ikon centang */
    color: var(--color-primary);
    position: absolute;
    left: 0;
    top: 5px;
    font-weight: 700;
}

/* =================================================================
   15. Logout Link Styling
   ================================================================= */

.user-area .logout-link {
    color: var(--color-text-muted);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-left: -5px; /* Sedikit merapatkan jarak dengan username */
}

.user-area .logout-link:hover {
    color: #ef4444; /* Warna merah saat di-hover untuk menandakan aksi keluar */
}

/* =================================================================
   16. Dropdown Menu Styling (NEW)
   ================================================================= */

.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 10px 0;
    margin-top: 10px; /* Jarak dari menu utama */
    box-shadow: var(--shadow);
    z-index: 1001;
    
    /* Sembunyikan dropdown secara default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Tampilkan dropdown saat parent-nya di-hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--color-primary);
    color: #fff !important; /* Paksa warna jadi putih */
}

/* =================================================================
   17. Genre (Tag Cloud) & Character Grid Styling (NEW)
   ================================================================= */

/* Genre Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.tag-item {
    --base-size: 1.2; /* Ukuran font dasar */
    background: var(--color-background);
    color: var(--color-text-muted);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
    font-size: calc(var(--base-size) * (0.8 + (var(--article-count, 1) / 10)))rem;
}

.tag-item:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary-dark);
    transform: scale(1.1);
}

.tag-count {
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-left: 8px;
    vertical-align: super;
}
.tag-item:hover .tag-count {
    background: #fff;
    color: var(--color-primary);
}

/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.character-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.character-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.character-image {
    height: 200px;
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.character-info {
    padding: 20px;
}

.character-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.character-desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    min-height: 3rem; /* Jaga tinggi konsisten */
    margin-bottom: 20px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* =================================================================
   18. Pagination Styling (NEW)
   ================================================================= */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    min-width: 40px;
    text-align: center;
    border: 1px solid var(--color-border);
    background-color: var(--color-surface);
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.pagination a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.pagination a.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    cursor: default;
}

/* ... CSS sebelumnya ... */
/* =================================================================
   19. Article Footer (Tags & Related Characters)
   ================================================================= */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}
.related-characters h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.character-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.character-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-surface);
    padding: 8px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}
.character-item:hover {
    background: var(--color-primary);
    color: #fff;
}
.character-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* =================================================================
   20. Article Detail Page Layout & Styling (FIXED)
   ================================================================= */

.article-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

@media (min-width: 992px) {
    .article-detail-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

.article-header {
    margin-bottom: 30px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 10px 0;
}

.article-meta {
    color: var(--color-text-muted);
}

.article-cover-main {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.article-cover-main img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}
.article-body h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
}
.article-body ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.article-body li {
    margin-bottom: 0.5rem;
}

/* Styling untuk Genre & Karakter di Bawah Artikel */
.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}
.tag-list .tag-item {
    background: var(--color-surface);
}

.related-characters h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.character-list {
    display: grid;
    /* Membuat grid yang responsif */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.character-item {
    display: flex;
    flex-direction: column; /* Mengatur item secara vertikal */
    align-items: center;
    text-align: center;
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 15px;
    text-decoration: none;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.character-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.character-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid var(--color-border);
}

.character-item span {
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.4;
    /* Tidak perlu white-space: nowrap lagi */
}

/* [BARU] Styling untuk bagian komentar */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}

.comments-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

/* =================================================================
   21. Article Sidebar & Rating Widget Styling (NEW)
   ================================================================= */

.article-detail-sidebar .sidebar-widget {
    background-color: var(--color-surface);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.sidebar-widget .widget-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-summary .score {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

.rating-summary .stars {
    line-height: 1;
}

.rating-summary .count {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* PENTING: Aturan untuk menata ikon bintang SVG */
.star-rating-display {
    display: flex;
    gap: 4px;
}

.star-rating-display svg {
    width: 24px;   /* Atur lebar bintang */
    height: 24px;  /* Atur tinggi bintang */
    fill: var(--color-text-muted); /* Warna bintang kosong */
}

.star-rating-display .star-filled {
    fill: #f59e0b; /* Warna kuning/oranye untuk bintang terisi */
}

/* Styling untuk tombol favorit */
.favorite-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    background-color: transparent;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.favorite-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.favorite-btn.favorited {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.favorite-count {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-border);
    margin: 8px 0;
}

/* =================================================================
   22. Creator Page & Admin List Styling (NEW)
   ================================================================= */

/* Halaman Publik (creators.php) */
.creator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.creator-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition-smooth);
}

.creator-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.creator-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid var(--color-border);
}

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

.creator-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.creator-bio {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    min-height: 4.5rem; /* Jaga tinggi konsisten */
    margin-bottom: 20px;
}

/* Halaman Admin (manage_creators.php) */
.creator-list-admin {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.creator-item-admin {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--color-background);
    padding: 10px;
    border-radius: 8px;
}
.creator-item-admin img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* =================================================================
   23. Work Detail Page Styling (NEW)
   ================================================================= */
.work-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .work-detail-layout {
        grid-template-columns: 1fr 2fr;
    }
}
.work-cover img {
    width: 100%;
    border-radius: var(--border-radius);
}
.work-meta {
    background: var(--color-surface);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}
.work-meta h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
}
.work-meta ul {
    list-style: none;
}
.work-meta li {
    margin-bottom: 5px;
}
.work-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
}
.work-section {
    margin-bottom: 30px;
}
.work-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}
.review-list a {
    color: var(--color-primary);
}

/* CSS untuk menu mobile yang disempurnakan */
.mobile-nav-divider {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    width: 80%;
    margin: 20px auto;
}

.mobile-nav-heading {
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

/* =================================================================
   24. Work List View (Tampilan Daftar Karya Detail)
   ================================================================= */
.work-list-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.work-list-item {
    display: flex;
    gap: 20px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.work-list-item:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.work-list-cover {
    flex-shrink: 0;
    width: 150px;
}

.work-list-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.work-list-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.work-list-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0 0 10px 0;
}

.work-list-title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.work-list-title a:hover {
    color: var(--color-primary);
}

.work-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.work-list-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.work-list-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.genre-tag {
    background-color: var(--color-background);
    color: var(--color-text-muted);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.work-list-synopsis {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.work-list-readmore {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    align-self: flex-start;
}

.work-list-readmore:hover {
    text-decoration: underline;
}

/* Penyesuaian untuk layar mobile */
@media (max-width: 768px) {
    .work-list-item {
        flex-direction: column;
    }
    .work-list-cover {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    .work-list-details {
        text-align: center;
    }
    .work-list-meta, .work-list-genres {
        justify-content: center;
    }
    .work-list-readmore {
        align-self: center;
    }
}

/* =================================================================
   25. POLISHED WORK LIST CARD (FINAL VERSION)
   ================================================================= */
.work-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.work-item-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border-color: var(--color-primary);
}

.work-item-left {
    width: 200px;
    flex-shrink: 0;
    margin: 0 auto;
}

.work-item-left img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.work-item-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-item-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
}

.work-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.work-item-title a:hover {
    color: var(--color-primary);
}

.work-item-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}

.detail-box {
    background-color: var(--color-background);
    border-radius: 8px;
    padding: 10px 15px;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.detail-value {
    display: block;
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 700;
}
.detail-value.star {
    color: #f59e0b; /* Warna kuning untuk bintang */
}

.work-item-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.genre-tag {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}
.genre-tag:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.synopsis-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.work-item-synopsis {
    color: var(--color-text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

@media (min-width: 992px) {
    .work-item-card {
        flex-direction: row;
    }
    .work-item-left {
        margin: 0;
    }
    .work-item-details-grid {
        grid-template-columns: repeat(4, 1fr); /* Paksa 4 kolom di desktop */
    }
}

/* =================================================================
   25. ULTIMATE DATACARD LAYOUT (FINAL VERSION)
   ================================================================= */
.work-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.work-item-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-item-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    border-color: var(--color-primary);
}

.work-item-left {
    width: 180px;
    flex-shrink: 0;
    margin: 0 auto;
}

.work-item-left img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.work-item-right {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-item-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.2;
}
.work-item-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.work-item-title a:hover {
    color: var(--color-primary);
}

.work-item-alt-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}
.work-item-alt-titles strong {
    color: var(--color-text);
}


.work-item-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.detail-box {
    background-color: rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 8px 12px;
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.detail-value {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.detail-value.star {
    color: #f59e0b;
    font-weight: 700;
}

.work-item-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.genre-tag {
    background-color: var(--color-background);
    color: var(--color-text-muted);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}
.genre-tag:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.synopsis-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.work-item-synopsis {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

@media (min-width: 992px) {
    .work-item-card {
        flex-direction: row;
    }
    .work-item-left {
        margin: 0;
    }
}

/* =================================================================
   26. DONATION CTA STYLES
   ================================================================= */
.donation-cta-wrapper {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.donation-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: #f8e158;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 2px solid #f8e158;
}

.donation-cta-button:hover {
    background-color: transparent;
    color: #f8e158;
}

.donation-cta-button img {
    height: 24px;
    width: auto;
}
/* =================================================================
   27. REDESIGNED ARTICLE PAGE LAYOUT
   ================================================================= */
.article-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default satu kolom untuk mobile */
    gap: 50px;
}
/* Terapkan dua kolom untuk layar yang lebih besar */
@media (min-width: 992px) {
    .article-layout {
        grid-template-columns: 2.5fr 1fr; /* Kolom konten lebih besar dari sidebar */
    }
}

/* Header Artikel Modern */
.article-header-modern {
    text-align: center;
    margin-bottom: 30px;
}
.article-category-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 1px;
}
.article-header-modern h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 10px 0;
    color: var(--color-text);
}
.article-meta-modern {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}
.article-meta-modern .separator {
    margin: 0 10px;
}

/* Cover Image Artikel */
.article-cover-main {
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    overflow: hidden;
}
.article-cover-main img {
    width: 100%;
    height: auto;
    display: block;
}

/* Body/Isi Artikel */
.article-body {
    max-width: 750px; /* Batasi lebar teks agar nyaman dibaca */
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}
.article-body h2, .article-body h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin: 2.5rem 0 1.5rem 0;
}
.article-body ul {
    list-style-position: inside;
    padding-left: 1rem;
}
.article-body a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Sidebar Artikel */
.article-sidebar {
    position: sticky;
    top: 100px; /* Jarak dari atas saat scroll */
    align-self: start; /* Pastikan sidebar menempel di atas */
}
.sidebar-widget {
    background-color: var(--color-surface);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

/* Seksi Karya Terkait & Komentar */
.related-work-section, .comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}
/* =================================================================
   28. CINEMATIC ARTICLE PAGE REDESIGN (REVISED)
   ================================================================= */

/* Hero Section Full-Screen */
.article-hero-section {
    position: relative;
    width: 100%;
    min-height: 60vh; /* Tinggi minimal 60% dari layar */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Teks di bagian bawah */
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 40px 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18,18,18,1) 5%, rgba(18,18,18,0.5) 50%, rgba(18,18,18,0.2) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.article-hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    margin: 10px 0;
}
@media (min-width: 768px) {
    .article-hero-section h1 {
        font-size: 3.5rem;
    }
}
.article-hero-section .article-meta-modern {
    color: rgba(255, 255, 255, 0.8);
}
.article-hero-section .article-meta-modern strong {
    color: #fff;
}

/* Layout Utama & Sidebar Sticky */
.article-layout-cinematic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
@media (min-width: 992px) {
    .article-layout-cinematic {
        grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr);
    }
}
.article-sidebar-sticky {
    position: relative;
}
.sidebar-sticky-inner {
    position: sticky;
    top: 100px; /* Jarak dari atas saat scroll */
    align-self: start;
}

/* Kotak Poin-Poin Penting */
.key-points-box {
    background-color: var(--color-surface);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 40px;
}
.key-points-box h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
}
.key-points-box ul {
    list-style: none;
    padding-left: 0;
}
.key-points-box li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.6;
    word-break: break-word; /* TAMBAHKAN BARIS INI */
}
.key-points-box li::before {
    content: '✔';
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

/* Tipografi Tubuh Artikel */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}
.article-body p:first-of-type::first-letter {
    font-size: 4rem;
    font-weight: bold;
    float: left;
    line-height: 1;
    margin-right: 10px;
    color: var(--color-primary);
    font-family: var(--font-heading);
}
.article-body h2, .article-body h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    margin: 2.5rem 0 1.5rem 0;
    line-height: 1.3;
}
.article-body a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
}
.article-body a:hover {
    background-color: var(--color-primary);
    color: #fff;
}
.article-body blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text);
}
/* =================================================================
   29. ENHANCED WORK DETAIL PAGE STYLES
   ================================================================= */

.work-detail-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default satu kolom untuk mobile */
    gap: 40px;
}
@media (min-width: 992px) {
    .work-detail-layout {
        grid-template-columns: 1fr 2.5fr; /* Sidebar lebih kecil */
    }
}

/* Sidebar Styles */
.work-sidebar .sidebar-widget {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 25px;
}
.work-sidebar .widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}
.work-meta-list {
    list-style: none;
    padding: 0;
    font-size: 0.95rem;
}
.work-meta-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}
.work-meta-list li:last-child {
    border-bottom: none;
}
.work-meta-list li strong {
    color: var(--color-text);
}
.creator-item-sidebar {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}
.creator-item-sidebar:hover {
    background-color: var(--color-background);
}
.creator-item-sidebar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.creator-item-sidebar span {
    color: var(--color-text);
    font-weight: 600;
}

/* Main Content Styles */
.work-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
}
.work-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}
.work-section {
    margin-bottom: 40px;
}
.work-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}
.related-reviews-grid {
    display: grid;
    gap: 20px;
}
.review-card-small {
    display: flex;
    gap: 15px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--color-border);
}
.review-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}
.review-card-small-image {
    width: 80px;
    flex-shrink: 0;
}
.review-card-small-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 6px;
}
.review-card-small-content h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}
.review-card-small-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* =================================================================
   30. ULTIMATE WORK DETAIL PAGE STYLES (REVISI FINAL)
   ================================================================= */
.work-sidebar .sidebar-widget:first-of-type {
    margin-top: 0;
}
.work-genres-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-main-content .work-title {
    margin-bottom: 5px;
}

.work-alt-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
}
.work-alt-titles strong {
    color: var(--color-text);
}

.work-full-details-list {
    list-style: none;
    padding: 0;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    border: 1px solid var(--color-border);
}
.work-full-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    align-items: center;
}
.work-full-details-list li:last-child {
    border-bottom: none;
}
.work-full-details-list li strong {
    color: var(--color-text);
    padding-right: 20px;
    flex-shrink: 0;
}
.work-full-details-list li span {
    color: var(--color-text-muted);
    text-align: right;
    word-break: break-word;
}

/* ========================================================== */
/* INI BAGIAN YANG DIPERBAIKI SESUAI PERMINTAAN ANDA          */
/* ========================================================== */
.related-reviews-grid {
    display: grid;
    gap: 15px; /* Jarak antar kartu diperkecil */
    grid-template-columns: 1fr; /* Memaksa tampilan menjadi satu kolom (daftar) */
}
.review-card-small {
    display: flex;
    flex-direction: row; /* Kembali ke format baris (gambar di kiri, teks di kanan) */
    align-items: center; /* Sejajarkan item secara vertikal */
    gap: 15px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--color-border);
}
.review-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}
.review-card-small-image {
    width: 80px; /* Lebar gambar diperkecil */
    flex-shrink: 0;
    margin-bottom: 0; /* Hapus margin bawah */
}
.review-card-small-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3; /* Rasio potret yang lebih cocok untuk thumbnail */
    object-fit: cover;
    border-radius: 6px;
}
.review-card-small-content h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-size: 1.1rem; /* Ukuran judul disesuaikan */
    margin: 0 0 5px 0;
}
.review-card-small-content p {
    color: var(--color-text-muted);
    font-size: 0.9rem; /* Ukuran teks deskripsi diperkecil */
    line-height: 1.5;
    margin: 0;
}
/* =================================================================
   31. WORK GALLERY VIEW STYLES (COMPACT)
   ================================================================= */

.work-gallery-grid {
    display: grid;
    /* Membuat kartu lebih kecil (200px) dan lebih banyak per baris */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px; /* Jarak antar kartu */
}

.gallery-card {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 2 / 3; /* Menjaga rasio potret yang konsisten */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 15px 15px 15px; /* Padding atas lebih besar untuk gradien */
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    display: flex;
    align-items: flex-end; /* Posisikan judul di paling bawah */
    transition: background 0.3s ease;
}

.gallery-card:hover .gallery-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
}

.gallery-card-title {
    font-family: var(--font-heading);
    font-size: 1rem; /* Ukuran font judul disesuaikan */
    color: #fff;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    line-height: 1.3;
    margin: 0;
    width: 100%;
}
/* =================================================================
   32. GENRE & CREATOR PAGE STYLES
   ================================================================= */

/* Genre Card Styles */
.category-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.genre-card {
    height: 150px; /* Tinggi kartu genre disesuaikan */
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
}
.genre-card .category-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.genre-card:hover .category-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.genre-card-count {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    background-color: rgba(0,0,0,0.3);
    padding: 3px 10px;
    border-radius: 50px;
    margin-top: 8px;
}

/* Creator Header Styles */
.creator-header-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.creator-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* =================================================================
   33. DYNAMIC USER PROFILE PAGE STYLES
   ================================================================= */

/* Bagian Header Profil (penyempurnaan dari kode lama) */
.profile-header-card {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column; /* Tampilan mobile-first */
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    text-align: center;
}
@media (min-width: 768px) {
    .profile-header-card {
        flex-direction: row; /* Tampilan desktop */
        text-align: left;
    }
}

.profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.profile-info {
    flex-grow: 1;
}
.profile-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center; /* Rata tengah di mobile */
}
@media (min-width: 768px) {
    .profile-stats {
        justify-content: flex-start; /* Rata kiri di desktop */
    }
}
.stat-item {
    background: var(--color-background);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 90px;
}
.stat-value {
    font-size: 1.4rem;
}

/* Bagian Konten Profil & Tab */
.profile-content {
    background: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 25px;
}
.tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 25px;
    overflow-x: auto; /* Agar bisa di-scroll di mobile */
}
.tab-link {
    background: none; border: none;
    color: var(--color-text-muted);
    padding: 12px 20px;
    font-size: 1rem; font-weight: 600;
    cursor: pointer; position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.tab-link:hover { color: var(--color-text); }
.tab-link.active { color: var(--color-primary); }
.tab-link.active::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 3px; background: var(--color-primary);
    border-radius: 3px;
}
.tab-content { display: none; }
.tab-content.active { display: block; }

.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px 0;
    font-style: italic;
}

/* Tampilan untuk Tab Ulasan & Rating */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.rating-item {
    display: flex;
    gap: 15px;
    background-color: var(--color-background);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--color-border);
}
.rating-item:hover {
    border-left-color: var(--color-primary);
}
.rating-item-cover {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}
.rating-item-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.rating-item-title {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}
.rating-item-title:hover {
    color: var(--color-primary);
}
.rating-item-review {
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 0.95rem;
    margin: 5px 0;
    padding-left: 10px;
    border-left: 2px solid var(--color-border);
}

/* Tampilan untuk Tab Lencana */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}
.badge-item {
    background: var(--color-background);
    border-radius: var(--border-radius);
    padding: 20px; text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}
.badge-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.badge-icon { margin-bottom: 15px; }
.badge-icon.badge-bronze { color: #cd7f32; }
.badge-icon.badge-silver { color: #c0c0c0; }
.badge-icon.badge-gold { color: #ffd700; }
.badge-name {
    display: block; font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}
/* =================================================================
   34. AUTH FORM ENHANCEMENTS
   ================================================================= */
.auth-form .form-group {
    margin-bottom: 15px;
}
.form-error-message {
    color: #f87171; /* Warna merah muda */
    font-size: 0.875rem;
    margin-top: 5px;
}
.btn.w-full {
    width: 100%;
    margin-top: 10px;
}
/* =================================================================
   35. REFINED SEARCH RESULT PAGE STYLES
   ================================================================= */

/* Mengganti gaya kartu hasil pencarian yang lama */
.search-result-card {
    display: flex;
    gap: 20px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    overflow: hidden;
}
.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}
.search-result-cover {
    width: 100px; /* Lebar gambar disesuaikan */
    flex-shrink: 0;
}
.search-result-cover img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 8px; /* Sudut lebih bulat */
}
.search-result-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.search-result-title a {
    font-family: var(--font-heading);
    font-size: 1.4rem; /* Judul sedikit lebih besar */
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.2s ease;
}
.search-result-title a:hover {
    color: var(--color-primary);
}
.search-result-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-result-meta .result-type-tag {
    background-color: var(--color-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.7rem;
}
.search-result-description {
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}
/* Penyesuaian untuk tampilan mobile */
@media (max-width: 600px) {
    .search-result-card {
        flex-direction: column;
    }
    .search-result-cover {
        width: 120px; /* Lebar disesuaikan untuk mode kolom */
        margin: 0 auto;
    }
    .search-result-details {
        text-align: center;
    }
    .search-result-meta {
        justify-content: center;
    }
}
/* =================================================================
   36. ADMIN DASHBOARD CONTROL CENTER STYLES
   ================================================================= */

.admin-dashboard-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.dashboard-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}

.dashboard-card .card-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    background-color: rgba(255, 107, 0, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.dashboard-card .card-content .card-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.dashboard-card .card-content .card-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-top: 5px;
}

/* Style untuk kartu yang lebih kecil */
.dashboard-card.small {
    padding: 20px;
    gap: 15px;
}
.dashboard-card.small .card-icon {
    font-size: 1.8rem;
    width: 55px;
    height: 55px;
}
.dashboard-card.small .card-content .card-value {
    font-size: 1.5rem;
}
.dashboard-card.small .card-content .card-label {
    font-size: 0.9rem;
}

/* Membuat beberapa kartu memanjang jika ada ruang */
@media (min-width: 1024px) {
    .admin-dashboard-grid {
        /* 5 kolom utama, 4 kolom kecil */
        grid-template-columns: repeat(10, 1fr);
    }
    .dashboard-card:nth-child(1),
    .dashboard-card:nth-child(2),
    .dashboard-card:nth-child(3),
    .dashboard-card:nth-child(4),
    .dashboard-card:nth-child(5) {
        grid-column: span 2;
    }
    .dashboard-card.small:nth-child(6),
    .dashboard-card.small:nth-child(7),
    .dashboard-card.small:nth-child(8),
    .dashboard-card.small:nth-child(9) {
        grid-column: span 2;
    }
    /* Contoh jika ingin ada yang memanjang */
    .dashboard-card:nth-child(1) {
        grid-column: span 4;
    }
    .dashboard-card:nth-child(2) {
        grid-column: span 2;
    }
    .dashboard-card:nth-child(3) {
        grid-column: span 2;
    }
    .dashboard-card:nth-child(4) {
        grid-column: span 2;
    }
}
/* =================================================================
   37. WORK DETAIL PAGE - CHARACTER LIST STYLES
   ================================================================= */

.character-list-horizontal {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 120px; /* Lebar setiap kartu karakter */
    gap: 15px;
    overflow-x: auto; /* Memungkinkan scroll horizontal */
    padding-bottom: 15px; /* Memberi ruang untuk scrollbar */
    scrollbar-width: thin;
}
.character-list-horizontal::-webkit-scrollbar {
    height: 8px;
}
.character-list-horizontal::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 10px;
}

.character-card-small {
    display: block;
    text-decoration: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease;
}
.character-card-small:hover {
    transform: scale(1.05);
}
.character-card-small img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
}
.character-card-small-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 20px 10px 10px;
    text-align: center;
}
/* =================================================================
   38. EDITORIAL WORK DETAIL PAGE STYLES (REVISI FINAL)
   ================================================================= */

/* Hero Section Revisi Final */
.work-hero-section.full-background {
    position: relative;
    padding: 80px 0; /* Padding vertikal lebih besar untuk efek dramatis */
    color: #fff;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 50vh; /* Tinggi minimal setengah layar */
}
.work-hero-section .hero-overlay {
    background: linear-gradient(to top, var(--color-background) 2%, rgba(0,0,0,0.7) 100%); /* Gradien lebih kuat dari bawah */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.work-hero-section .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero-details {
    width: 100%;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
    margin-bottom: 5px;
}
.hero-alt-titles {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 20px;
}
.hero-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.hero-genres .genre-tag {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    backdrop-filter: blur(5px);
}
.hero-genres .genre-tag:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Main Content Area */
.work-main-content-area {
    max-width: 900px;
    margin: 0 auto;
}
.work-section {
    margin-bottom: 50px;
}
.work-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 10px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.info-grid-item {
    background-color: var(--color-surface);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}
.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.info-value {
    display: block;
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 500;
}

/* Creator Horizontal List */
.creator-grid-horizontal {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
}
.creator-card-small {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}
.creator-card-small:hover {
    transform: translateY(-5px);
    background-color: var(--color-primary);
}
.creator-card-small img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--color-border);
}
.creator-card-small:hover img {
    border-color: #fff;
}
.creator-card-small-name {
    color: var(--color-text);
    font-weight: 600;
}
.creator-card-small:hover .creator-card-small-name {
    color: #fff;
}

/* Penyesuaian Ulasan Terkait */
.related-reviews-grid {
    grid-template-columns: 1fr;
}
.review-card-small-content h3 {
    font-size: 1.1rem;
}
.review-card-small {
    align-items: flex-start;
}
/* =================================================================
   39. CHARACTER DETAIL PAGE STYLES
   ================================================================= */

.character-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .character-detail-layout {
        grid-template-columns: 1fr 3fr; /* Sidebar gambar lebih kecil */
    }
}
.character-main-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.character-name-large {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* =================================================================
   40. HOMEPAGE REVAMP STYLES (Final Stable Layout)
   ================================================================= */

.featured-container {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom untuk mobile */
    gap: 20px;
}

@media (min-width: 992px) {
    .featured-container {
        grid-template-columns: 2fr 1fr; /* 2 kolom untuk desktop (2:1 ratio) */
    }
}

.featured-main {
    height: 300px; /* Tinggi di mobile */
}
@media (min-width: 992px) {
    .featured-main {
        height: auto; /* Tinggi otomatis di desktop */
    }
}

.featured-aside {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 20px;
}
@media (min-width: 640px) and (max-width: 991px) {
    .featured-aside {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet */
    }
}
@media (min-width: 992px) {
    .featured-aside {
        grid-template-columns: 1fr; /* Kembali ke 1 kolom di dalam sidebar desktop */
        grid-template-rows: repeat(2, 1fr); /* 2 baris vertikal */
    }
    /* Sembunyikan item ke 3 & 4 di desktop agar pas */
    .featured-aside .card-small:nth-child(n+3) {
        display: none;
    }
}

/* Styling untuk Kartu Besar */
.card-large {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 100%;
}
.card-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-large .card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent 70%);
}
.card-large:hover img {
    transform: scale(1.05);
}
.card-large .card-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    line-height: 1.2;
    margin: 10px 0;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.9);
}
.card-large .card-excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}
.group:hover .card-large .card-title {
    color: var(--color-primary);
}

/* Styling untuk Kartu Kecil */
.card-small {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 250px;
}
@media (min-width: 992px) {
    .card-small {
        height: auto; /* Tinggi otomatis di desktop */
    }
}
.card-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card-small .card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 80%);
}
.card-small:hover img {
    transform: scale(1.05);
}
.card-small .card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}
.group:hover .card-small .card-title {
    color: var(--color-primary);
}
/* =================================================================
   41. HOMEPAGE WORKS GALLERY ENHANCEMENT
   ================================================================= */

/* Ukuran kartu galeri karya dibuat lebih kecil secara default */
.work-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* Tampilan Khusus untuk Mobile (Scroll Horizontal) */
@media (max-width: 767px) {
    .mobile-scroll-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 140px; /* Lebar setiap kartu saat scroll */
        overflow-x: auto;
        padding-bottom: 15px; /* Memberi ruang untuk scrollbar */
        scrollbar-width: thin; /* Untuk Firefox */
    }
    .mobile-scroll-grid::-webkit-scrollbar {
        height: 6px; /* Scrollbar lebih tipis untuk mobile */
    }
    .mobile-scroll-grid::-webkit-scrollbar-thumb {
        background-color: var(--color-primary);
        border-radius: 10px;
    }
}

/* =================================================================
   42. EXPANDED HOMEPAGE REVIEWS GRID
   ================================================================= */
.article-grid-expanded {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di mobile */
}

@media (min-width: 768px) {
    .article-grid-expanded {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di tablet */
    }
}

@media (min-width: 1024px) {
    .article-grid-expanded {
        grid-template-columns: repeat(4, 1fr); /* 4 kolom di desktop */
    }
}

.article-card-expanded {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
    aspect-ratio: 2 / 3; /* Menjaga rasio potret */
    color: #fff;
}

.article-card-expanded img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card-expanded .card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent 70%);
}

.article-card-expanded .card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.3;
    margin-top: 8px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.group:hover .article-card-expanded img {
    transform: scale(1.05);
}

.group:hover .article-card-expanded .card-title {
    color: var(--color-primary);
}

/* =================================================================
   43. NEWS PORTAL HOMEPAGE LAYOUT
   ================================================================= */

/* Hapus Hero Section & Separator Bawaan */
.hero-section, .section-separator {
    display: none;
}

/* Main Story Grid (Artikel Utama & Populer) */
.main-story-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 25px;
}
@media (min-width: 768px) {
    .main-story-grid {
        grid-template-columns: 2fr 1fr; /* 2 kolom di tablet & desktop */
    }
}

.main-story-card a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    color: #fff;
    text-decoration: none;
}
.main-story-image {
    width: 100%;
    padding-top: 60%; /* Aspect ratio 5:3 */
    position: relative;
}
.main-story-image img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.main-story-card a:hover .main-story-image img {
    transform: scale(1.05);
}
.main-story-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent 70%);
}
.main-story-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.2;
    margin-top: 8px;
    transition: color 0.3s ease;
}
.main-story-card a:hover .main-story-title {
    color: var(--color-primary);
}

/* Sidebar Populer */
.popular-list {
    background-color: var(--color-surface);
    padding: 20px;
    border-radius: var(--border-radius);
}
.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}
.popular-list ol {
    list-style: none;
    padding-left: 0;
}
.popular-list li a {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}
.popular-list li:last-child a {
    border-bottom: none;
}
.popular-list li a:hover .popular-title {
    color: var(--color-primary);
}
.popular-rank {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text);
    line-height: 1;
    font-weight: 700;
}
.popular-title {
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-text);
    transition: color 0.2s ease;
}

/* Grid Artikel Terbaru di Bawah */
.grid-container {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom di mobile */
}
@media (min-width: 1024px) {
    .grid-container {
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di desktop */
    }
}
.grid-card {
    display: block;
    text-decoration: none;
}
.grid-card-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}
.grid-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.grid-card:hover .grid-card-image img {
    transform: scale(1.05);
}
.grid-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--color-text);
    font-weight: 600;
    margin-top: 8px;
    transition: color 0.2s ease;
}
.grid-card:hover .grid-card-title {
    color: var(--color-primary);
}
/* =================================================================
   44. POPULAR ARTICLES PAGE LAYOUT (REVISED)
   ================================================================= */

.popular-list-page-revised {
    display: grid;
    grid-template-columns: 1fr; /* 1 kolom di mobile */
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .popular-list-page-revised {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di tablet & desktop */
    }
}

.popular-item-revised {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    text-decoration: none;
    padding: 15px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.popular-item-revised:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}

.popular-item-rank-cover {
    position: relative;
    flex-shrink: 0;
    width: 80px;
    height: 110px;
    border-radius: 6px;
    overflow: hidden;
}

.popular-item-rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-item-rank-cover .rank-number {
    position: absolute;
    top: -5px;
    left: -10px;
    background: var(--gradient-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    padding: 5px 12px 8px 15px;
    border-bottom-right-radius: 15px;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.popular-item-details {
    display: flex;
    flex-direction: column;
}

.popular-item-details .card-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.popular-item-details .popular-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 5px 0 8px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.group:hover .popular-item-details .popular-title {
    color: var(--color-primary);
}

/* =================================================================
   45. MOBILE ARTICLE VIEW HOTFIX
   ================================================================= */

@media (max-width: 767px) {
    /* Perkecil tinggi hero section di mobile */
    .article-hero-section {
        min-height: 50vh;
        padding: 20px 0;
        align-items: flex-end; /* Ratakan teks ke bawah */
    }

    /* Perkecil ukuran font judul utama di mobile */
    .article-hero-section h1 {
        font-size: 1.8rem; /* Ukuran font judul diperkecil */
        margin-bottom: 8px;
    }

    /* Perkecil ukuran font meta (author & tanggal) */
    .article-hero-section .article-meta-modern {
        font-size: 0.85rem;
    }

    /* Perbaiki padding pada layout utama */
    .article-layout-cinematic {
        gap: 25px;
    }

    /* Perbaiki tipografi di isi artikel untuk mobile */
    .article-body {
        font-size: 1rem; /* Ukuran font konten sedikit diperkecil */
        line-height: 1.7;
    }

    .article-body h2, .article-body h3 {
        margin: 2rem 0 1rem 0;
        line-height: 1.3;
    }
    
    .article-body p:first-of-type::first-letter {
        font-size: 3.5rem; /* Perkecil sedikit huruf pertama */
        margin-right: 8px;
    }

    /* Perbaiki tampilan sidebar di mobile */
    .sidebar-sticky-inner {
        position: static; /* Non-aktifkan sticky di mobile */
    }
}
/* =================================================================
   46. ARTICLE PAGE HOTFIX & REDESIGN
   ================================================================= */

/* Perbaikan Umum untuk Mencegah Overflow */
.article-hero-section h1,
.article-body h2,
.article-body h3 {
    word-break: break-word;
}

/* Hero Section Revisi */
.article-hero-section {
    padding: 60px 0;
    min-height: auto;
    align-items: center; /* Teks di tengah vertikal */
}

.article-hero-section h1 {
    font-size: 2.2rem; /* Ukuran font judul disesuaikan */
    margin-top: 15px;
}

.hero-overlay {
     background: linear-gradient(to top, rgba(18,18,18,1) 15%, rgba(18,18,18,0.7) 60%, rgba(18,18,18,0.4) 100%);
}

/* Layout Utama & Sidebar */
.article-layout-cinematic {
    gap: 50px; /* Jarak antara konten utama dan sidebar */
}

/* Perbaikan Kotak Poin Penting */
.key-points-box li {
    word-break: break-word; /* Memaksa teks turun jika terlalu panjang */
}

/* Penyesuaian Tipografi Isi Artikel */
.article-body h2 {
    font-size: 1.8rem;
}
.article-body h3 {
    font-size: 1.5rem;
}
.article-body blockquote {
    font-size: 1.1rem;
}
.article-body a {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 2px;
}
.article-body a:hover {
    border-radius: 4px;
}


/* Styling Sidebar agar lebih rapi */
.sidebar-widget .work-item-card .work-item-right {
    padding: 10px 0 0 0; /* Sesuaikan padding */
}

.sidebar-widget .work-item-card .work-item-title {
    font-size: 1.2rem; /* Ukuran judul karya di sidebar */
}

/* Perbaikan Tampilan Mobile */
@media (max-width: 991px) {
    /* Pindahkan sidebar ke bawah konten utama di mobile */
    .article-layout-cinematic {
        display: flex;
        flex-direction: column;
    }
    .article-main-content {
        order: 1; /* Konten utama di atas */
    }
    .article-sidebar-sticky {
        order: 2; /* Sidebar di bawah */
    }
    .sidebar-sticky-inner {
        position: static; /* Non-aktifkan sticky */
    }
}

@media (max-width: 767px) {
    .article-hero-section h1 {
        font-size: 1.9rem; /* Perkecil lagi di layar sangat kecil */
    }
    .key-points-box {
        padding: 20px;
    }
    .article-body {
        font-size: 1rem;
    }
}
/* =================================================================
   47. SIDEBAR WORK CARD HOTFIX
   ================================================================= */

.sidebar-work-card {
    display: block;
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.sidebar-work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}

.sidebar-work-card .swc-image img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.sidebar-work-card .swc-content {
    padding: 15px;
}

.sidebar-work-card .swc-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-text);
    line-height: 1.4;
    font-weight: 600;
    margin: 0 0 5px 0;
    transition: color 0.2s ease;
}

.sidebar-work-card:hover .swc-title {
    color: var(--color-primary);
}

.sidebar-work-card .swc-meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0;
}
/* =================================================================
   48. HEADER REVAMP & SEARCH MODAL (ULTIMATE FIX)
   ================================================================= */

/* Main Header Container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Diperlukan untuk centering navigasi desktop */
}

/* Logo */
.logo {
    flex-shrink: 0; /* Mencegah logo mengecil */
}

/* Navigasi Utama (Desktop) */
.main-nav {
    display: none; /* Sembunyikan di mobile */
}
@media (min-width: 992px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 35px;
        /* Trik untuk menempatkan navigasi di tengah absolut */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Aksi Header (Kanan) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-action-btn {
    background: none; border: none;
    color: var(--color-text-muted);
    font-size: 1.1rem; cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}
.header-action-btn:hover {
    color: var(--color-text);
}

/* Sembunyikan/Tampilkan elemen berdasarkan ukuran layar */
.auth-actions, .notification-bell, .header-user-avatar {
    display: none;
}
.mobile-menu-toggle {
    display: block;
}

@media (min-width: 992px) {
    .auth-actions, .notification-bell, .header-user-avatar {
        display: flex;
        align-items: center;
    }
    .mobile-menu-toggle {
        display: none;
    }
}


/* User Avatar Dropdown */
.header-user-avatar img {
    width: 38px; height: 38px;
    border-radius: 50%;
    object-fit: cover;
}
.dropdown-menu-right {
    left: auto;
    right: 0;
}


/* Mobile Menu Overlay - Desain Ulang */
.mobile-nav-overlay nav a {
    font-size: 1.8rem; /* Ukuran font lebih touch-friendly */
}
.mobile-user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}


/* Search Overlay (Tidak ada perubahan, sudah baik) */
.search-overlay {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.search-overlay.open {
    opacity: 1; visibility: visible;
}
.search-overlay-close {
    position: absolute; top: 20px; right: 30px;
    font-size: 3rem; color: var(--color-text-muted);
    background: none; border: none; cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}
.search-overlay-close:hover {
    color: #fff; transform: rotate(90deg);
}
.search-overlay-content {
    width: 90%; max-width: 600px;
    position: relative;
}
.search-form-overlay {
    position: relative;
}
.search-form-overlay input {
    width: 100%; background: none; border: none;
    border-bottom: 2px solid var(--color-text-muted);
    font-size: 1.5rem; color: #fff;
    padding: 15px 50px 15px 10px;
    outline: none;
    transition: border-color 0.3s ease;
}
.search-form-overlay input:focus {
    border-bottom-color: var(--color-primary);
}
.search-form-overlay button {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--color-text-muted);
    font-size: 1.5rem; cursor: pointer;
}
#autocomplete-results-overlay {
    top: 100%; left: 0; right: 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    max-height: 40vh;
}
/* =================================================================
   49. MOBILE MENU REFINEMENT
   ================================================================= */

@media (max-width: 767px) {
    .mobile-nav-overlay nav a {
        font-size: 1.5rem; /* Ukuran font menu diperkecil */
        gap: 20px; /* Jarak antar item menu diperkecil */
    }

    .mobile-nav-heading {
        font-size: 0.8rem; /* Ukuran heading "Jelajahi" diperkecil */
        margin-bottom: 10px;
    }

    .mobile-nav-divider {
        margin: 15px auto; /* Jarak pemisah diperkecil */
    }

    .mobile-user-actions {
        padding: 15px 0; /* Padding area login/daftar diperkecil */
    }

    .mobile-user-actions .btn {
        padding: 10px 24px; /* Ukuran tombol daftar diperkecil */
        font-size: 14px;
    }
}
/* =================================================================
   50. MOBILE GENRE CARD REFINEMENT (3-COLUMN GRID)
   ================================================================= */

@media (max-width: 767px) {
    .category-grid {
        /* Membuat grid dengan 3 kolom yang sama lebar */
        grid-template-columns: repeat(3, 1fr);
        gap: 10px; /* Jarak antar kartu diperkecil */
    }

    .genre-card {
        height: 110px; /* Tinggi kartu disesuaikan agar lebih kecil */
        border-radius: 8px; /* Sudut sedikit lebih kecil */
    }

    .genre-card .category-card-overlay {
        padding: 10px; /* Padding di dalam kartu diperkecil */
    }

    .genre-card .category-card-title {
        font-size: 1rem; /* Ukuran font judul diperkecil agar muat */
        line-height: 1.2;
    }

    .genre-card-count {
        font-size: 0.7rem; /* Ukuran font jumlah karya diperkecil */
        margin-top: 4px;
        padding: 2px 8px;
    }
}

/* =================================================================
   51. SIDEBAR RELATED WORKS GRID
   ================================================================= */

.related-works-grid {
    display: grid;
    /* Membuat 3 kolom kartu kecil, dan akan menyesuaikan otomatis */
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px; /* Jarak antar kartu */
}

.related-work-card {
    display: block;
    position: relative;
    border-radius: 8px; /* Sudut kartu lebih kecil */
    overflow: hidden;
    aspect-ratio: 2 / 3; /* Menjaga rasio potret */
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-work-card:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.related-work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 5px 5px 5px; /* Padding untuk judul */
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    text-align: center;
    opacity: 0; /* Sembunyikan judul secara default */
    transition: opacity 0.2s ease;
}

.related-work-card:hover .related-work-overlay {
    opacity: 1; /* Tampilkan judul saat di-hover */
}

.related-work-title {
    font-size: 0.75rem; /* Ukuran font judul sangat kecil */
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
}