/* =========================================
   🎨 ROBOPANDA EXPLORER V2.0
   Premium Educational Experience
   Design: Playful Premium | Mobile-First
   ========================================= */

/* =========================================
   1. DESIGN TOKENS (Foundation)
   ========================================= */

:root {
  /* Color Palette - Enhanced Green System */
  --green-50: #e8f5e9;
  --green-100: #c8e6c9;
  --green-200: #a5d6a7;
  --green-500: #2ecc71;
  --green-600: #27ae60;
  --green-700: #229954;
  --green-800: #1e8449;
  
  /* Semantic Colors */
  --primary: var(--green-500);
  --primary-hover: var(--green-600);
  --primary-light: var(--green-100);
  --primary-bg: var(--green-50);
  
  --secondary: #3498db;
  --accent-orange: #ff9800;
  --accent-purple: #9c27b0;
  --accent-red: #e74c3c;
  
  /* Neutrals */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-400: #bdbdbd;
  --gray-500: #9e9e9e;
  --gray-600: #757575;
  --gray-700: #616161;
  --gray-800: #424242;
  --gray-900: #212121;
  
  --white: #ffffff;
  --black: #1a1a1a;
  
  /* Surface Colors */
  --bg-primary: #fafbfc;
  --bg-secondary: var(--white);
  --bg-elevated: var(--white);
  
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  
  /* Spacing Scale (8px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  
  /* Typography Scale */
  --font-family-base: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family-heading: 'Fredoka One', cursive;
  
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-2xl: 0 24px 64px rgba(0, 0, 0, 0.16);
  
  /* Green Glow Effects */
  --glow-primary: 0 4px 20px rgba(46, 204, 113, 0.25);
  --glow-primary-lg: 0 8px 32px rgba(46, 204, 113, 0.35);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Z-index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
}

/* =========================================
   2. RESET & BASE STYLES
   ========================================= */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family-base);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */

.explorer-header {
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--gray-200);
}

@supports (backdrop-filter: blur(20px)) {
  .explorer-header {
    background: rgba(255, 255, 255, 0.85);
  }
}

/* Pastikan Baris Atas membagi ruang ke kiri dan kanan */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
}

/* Styling baris menu di bawah */
.header-nav-row {
  display: flex;
  justify-content: center; /* Mengetengahkan menu Home/Galeri */
  padding-bottom: 15px;
  background: white;
  border-bottom: 1px solid #f0f0f0; /* Garis tipis pemisah */
}


/* Logo Area */
.logo-area {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.main-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(46, 204, 113, 0.15));
  transition: transform var(--transition-base);
}

.main-logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

.logo-text h1 {
  font-family: var(--font-family-heading);
  font-size: var(--text-xl);
  color: var(--text-primary);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.logo-text p {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: -2px;
}

/* Search Box - Enhanced */
.search-box {
  position: relative;
  flex: 1;
  max-width: 500px;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: var(--space-3) var(--space-6) var(--space-3) var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  font-size: var(--text-base);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.search-box input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  background: var(--white);
}

.search-btn {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-lg);
  color: var(--text-muted);
  pointer-events: none;
}

.search-btn::before {
  content: '🔍';
}

/* Typing Indicator */
.search-box.typing input {
  border-color: var(--primary);
  animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: var(--primary-hover); }
}

/* Level Tabs - Premium Pills */
.level-tabs {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-4);
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.level-tabs::-webkit-scrollbar {
  display: none;
}

.tab-item {
  position: relative;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  white-space: nowrap;
  transition: all var(--transition-base);
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* Desktop Hover */
@media (hover: hover) {
  .tab-item:hover:not(.active) {
    background: var(--primary-light);
    color: var(--primary-hover);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }
}

/* Active State */
.tab-item.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  transform: scale(1.05);
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-full);
}

/* Touch Feedback */
.tab-item:active {
  transform: scale(0.95);
}

/* =========================================
   4. MAIN CONTENT LAYOUT
   ========================================= */

.explorer-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.feed-section {
  margin-bottom: var(--space-12);
  position: relative;
}

.section-header {
  margin-bottom: var(--space-5);
  padding: 0 var(--space-2);
}

.section-header h2 {
  font-family: var(--font-family-heading);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  line-height: 1.3;
}

.section-header p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* Live Badge - Pulsing */
.badge-live {
  font-family: var(--font-family-base);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  background: var(--accent-red);
  color: var(--white);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  animation: pulse-live 2s ease-in-out infinite;
}

.badge-live::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--accent-red);
  border-radius: var(--radius-sm);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

@keyframes pulse-live {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes ping {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
  75%, 100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* =========================================
   5. HORIZONTAL SCROLL - NETFLIX STYLE
   ========================================= */

.horizontal-scroll {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--space-4) var(--space-2);
  scroll-snap-type: x mandatory;
  scroll-padding: var(--space-4);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* Fade Edge Effect - Right Side */
.feed-section::after {
  content: '';
  position: absolute;
  top: 80px; /* Below header */
  right: 0;
  width: 120px;
  height: calc(100% - 80px);
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--bg-primary) 100%
  );
  pointer-events: none;
  z-index: var(--z-base);
  opacity: 0.95;
  transition: opacity var(--transition-base);
}

/* Hide fade when scrolled to end (via JS class) */
.feed-section.scroll-end::after {
  opacity: 0;
}

/* Scroll Indicator Dots (Optional - Add via JS) */
.scroll-indicators {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--gray-300);
  transition: all var(--transition-base);
}

.scroll-dot.active {
  background: var(--primary);
  width: 24px;
}

/* =========================================
   6. GRID LAYOUT - RESPONSIVE
   ========================================= */
.grid-layout {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  grid-template-columns: repeat(2, 1fr); /* Default: 2 kolom di HP */
}

.grid-layout .materi-card {
  width: 100%;
  flex: none;
  max-width: 100%;
}

/* Tablet */
@media (min-width: 640px) {
  .grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .grid-layout {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* =========================================
   7. CARD COMPONENT - PREMIUM DESIGN
   ========================================= */

/* === Materi Card === */
.materi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all var(--transition-base);
  scroll-snap-align: start;
  scroll-margin-left: var(--space-4);
}

/* Horizontal Scroll Variant */
.horizontal-scroll .materi-card {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
}

/* Hover Effects (Desktop Only) */
@media (hover: hover) {
  .materi-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
  }

  .materi-card:hover .card-img-main {
    transform: scale(1.05);
  }

  .materi-card:hover .card-image::after {
    opacity: 1;
  }
}

/* Active State (Touch Devices) */
.materi-card:active {
  transform: scale(0.98);
  transition: transform var(--transition-fast);
}

/* === Card Image === */
.card-image,
.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.card-img-main,
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Overlay Gradient */
.card-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

/* Icon Fallback */
.card-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-bg));
}

/* === Card Content === */
.card-content,
.card-body {
  padding: var(--space-4);
}

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-2);
}

.level-badge strong {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  text-transform: none;
  letter-spacing: 0;
}

.card-content h3,
.card-body h3 {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  line-height: 1.4;
  margin: var(--space-2) 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content p,
.card-body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-content small,
.card-body small {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

/* === Watermark === */
.card-watermark {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  width: 80px;
  opacity: 0.9;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}


/* =========================================
   8. LOADING STATE - SKELETON
   ========================================= */

.loading-placeholder {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-2);
  overflow: hidden;
}

.skeleton-card {
  min-width: 280px;
  height: 420px;
  background: linear-gradient(
    90deg,
    var(--gray-200) 0%,
    var(--gray-100) 50%,
    var(--gray-200) 100%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-xl);
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Skeleton Variants */
.skeleton-card:nth-child(2) {
  animation-delay: 0.2s;
}

.skeleton-card:nth-child(3) {
  animation-delay: 0.4s;
}

/* ========================================= 
   9. MODAL OVERLAY - High Contrast & Premium 
   ========================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: var(--space-4);
  z-index: var(--z-modal-backdrop);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--white);
  color: var(--text-primary);
  width: 100%;
  max-width: 480px; 
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
  animation: slideUpBounce 0.5s var(--transition-bounce);
  position: relative;
}

/* --- HERO IMAGE AREA --- */
.modal-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Rasio 3:4 Tetap */
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-800); /* Background gelap loading state */
}

#modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* GRADIENT GELAP (Wajib agar title putih terbaca di foto cerah) */
.modal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Gradasi hitam pekat di bawah untuk teks */
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.95) 100%);
  z-index: 1;
}

.modal-watermark {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  width: 160px;
  opacity: 1.2;
  z-index: 6;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
}

/* --- JUDUL & INFO DI ATAS GAMBAR --- */

/* Container Info (Jika ada tag/tanggal) */
.modal-overlay-info {
  position: absolute;
  bottom: 80px; /* Di atas judul */
  left: var(--space-6);
  z-index: 5;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-xs);
  font-weight: bold;
  text-transform: none;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.modal-title {
  position: absolute;
  bottom: 24px;
  left: 0;
  width: flexible;
  padding: 0 6px; /* Padding kiri-kanan tetap ada agar tidak nempel layar */
  box-sizing: border-box;
  z-index: 5;
  
  font-family: var(--font-family-heading);
  
  /* UKURAN FONT DINAMIS (Wajib Ganti Ini) */
  /* Minimal 18px, Maksimal 28px tergantung lebar layar */
  font-size: clamp(0.5rem, 5vw, 1rem); 
  
  line-height: 1;
  color: #ffffff !important;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
  
  /* Logika Satu Baris */
  white-space: nowrap;      
  overflow: hidden;         
  text-overflow: ellipsis;  
}

/* --- BODY KONTEN --- */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  background: var(--white);
  position: relative;
  z-index: 6; 
  /* Tidak perlu margin-top minus lagi karena title sudah di dalam foto */
}

/* Styling isi deskripsi */
.content-block h3 {
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-2);
  border-bottom: 2px solid var(--primary-light);
  display: inline-block;
  padding-bottom: 4px;
}

.detail-text {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-line;
}

/* Tombol Close */
.btn-close-modal {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5); /* Background gelap transparan */
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
  z-index: 100;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-modal:hover {
  background: var(--white);
  color: var(--black);
  transform: rotate(90deg);
}
/* =========================================
   10. FOOTER - CTA SECTION
   ========================================= */

.explorer-footer {
  position: relative;
  padding: var(--space-16) var(--space-4) var(--space-8);
  background: linear-gradient(
    135deg,
    var(--primary-bg) 0%,
    #e8f5e9 50%,
    var(--primary-bg) 100%
  );
  border-top: 1px solid var(--gray-200);
  overflow: hidden;
}

/* Decorative Background Elements */
.explorer-footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(46, 204, 113, 0.12),
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.explorer-footer::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(46, 204, 113, 0.08),
    transparent 70%
  );
  border-radius: 50%;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}

/* CTA Container */
.cta-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* CTA Card - Premium Style */
.cta-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  backdrop-filter: blur(20px);
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-2xl);
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(46, 204, 113, 0.15);
  overflow: hidden;
  margin-bottom: var(--space-12);
}

/* Shine Effect */
.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h3 {
  font-family: var(--font-family-heading);
  font-size: var(--text-3xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

/* Instagram Button - Premium */
.btn-ig-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-hover) 100%
  );
  color: var(--white);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-decoration: none;
  box-shadow: var(--glow-primary-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-ig-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-ig-premium:hover::before {
  transform: translateX(100%);
}

.btn-ig-premium:hover {
  transform: translateY(-4px);
  box-shadow: 
    var(--glow-primary-lg),
    0 0 0 4px rgba(46, 204, 113, 0.2);
}

.btn-ig-premium:active {
  transform: translateY(-2px) scale(0.98);
}

.icon-ig-svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  padding-top: var(--space-6);
  border-top: 1px solid var(--gray-300);
  position: relative;
  z-index: 1;
}

.footer-bottom p {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.footer-bottom small {
  font-size: var(--text-sm);
  font-style: italic;
}

/* =========================================
   11. RESPONSIVE ADJUSTMENTS
   ========================================= */

/* Mobile Portrait */
@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  
  .header-top {
    padding: var(--space-3);
  }
  
  .main-logo {
    height: 36px;
  }
  
  .logo-text h1 {
    font-size: var(--text-lg);
  }
  
  .search-box {
    max-width: 100%;
    order: 3;
    flex-basis: 100%;
  }
  
  .section-header h2 {
    font-size: var(--text-xl);
  }
  
  .horizontal-scroll {
    padding-left: var(--space-4);
    gap: var(--space-3);
  }
  
  .horizontal-scroll .materi-card {
    min-width: 260px;
    max-width: 260px;
  }
  
  .modal-content {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  }
  
  .modal-hero {
    aspect-ratio: 3 / 4;
  }
  
  .modal-title {
    font-size: var(--text-2xl);
  }
  
  .modal-watermark {
    width: 120px;
    top: var(--space-4);
    left: var(--space-4);
  }
  
  .modal-overlay-info {
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
  }
  
  .modal-body {
    padding: var(--space-6) var(--space-4);
  }
  
  .cta-card {
    padding: var(--space-8) var(--space-5);
  }
  
  .cta-content h3 {
    font-size: var(--text-2xl);
  }
  
  .btn-ig-premium {
    width: 100%;
    padding: var(--space-4);
  }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
  .explorer-main {
    padding: var(--space-10) var(--space-5);
  }
  
  .horizontal-scroll .materi-card {
    min-width: 300px;
    max-width: 300px;
  }
}

/* Desktop Large */
@media (min-width: 1440px) {
  html {
    font-size: 18px;
  }
  
  .explorer-main {
    padding: var(--space-12) var(--space-6);
  }
}

/* =========================================
   12. ACCESSIBILITY & UTILITIES
   ========================================= */

/* Focus Styles */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-4 { margin-top: var(--space-4); }

/* Print Styles */
@media print {
  .explorer-header,
  .level-tabs,
  .btn-close-modal,
  .explorer-footer {
    display: none;
  }
  
  .modal-overlay {
    position: relative;
    background: white;
  }
  
  .modal-content {
    box-shadow: none;
    max-width: 100%;
  }
}
