/* ====================================================================
   MEDIA PEMBELAJARAN INTERAKTIF APAT - SMK NEGERI 1 MUNDU
   Gaya Kustom, Animasi, dan Tata Letak Cetak (Print Stylesheet)
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  --primary-color: #0d9488; /* Teal 600 */
  --primary-dark: #0f766e;  /* Teal 700 */
  --accent-color: #0284c7;   /* Sky 600 */
  --gold-color: #eab308;     /* Amber 500 */
  --bg-gradient: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 50%, #f8fafc 100%);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: #f8fafc;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.6);
}

/* Active Nav Button */
.nav-link.active {
  background: linear-gradient(135deg, #0d9488, #0284c7);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

/* Sub-Tab Navigation */
.subtab-btn.active {
  background-color: #0d9488;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Certificate Styling */
.certificate-container {
  background: #ffffff;
  border: 12px double #0f766e;
  outline: 3px solid #0284c7;
  outline-offset: -8px;
  position: relative;
  overflow: hidden;
}

.certificate-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  width: 70%;
  height: 70%;
}

.certificate-ribbon {
  background: linear-gradient(90deg, #0d9488, #0284c7);
}

/* Star Rating */
.star-btn {
  transition: transform 0.2s ease, color 0.2s ease;
}
.star-btn:hover {
  transform: scale(1.2);
}
.star-btn.selected {
  color: #eab308;
}

/* Pulse animation for CTA buttons */
@keyframes softPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(13, 148, 136, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.pulse-cta {
  animation: softPulse 2.5s infinite;
}

/* Print Stylesheet Optimization */
@media print {
  /* Sembunyikan elemen navigasi dan kontrol layar */
  nav, .mobile-nav, header, .no-print, .action-buttons, footer, #btn-audio, #progress-bar-container {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 11pt;
  }

  /* Tampilkan hanya bagian yang aktif atau modal cetak */
  .page-view {
    display: none !important;
  }

  .page-view.active {
    display: block !important;
  }

  .certificate-container {
    border: 6px double #0f766e !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin: 1cm auto !important;
    width: 100% !important;
    max-width: 900px !important;
  }

  .card-print {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid;
  }

  @page {
    size: A4 portrait;
    margin: 1.5cm;
  }
}
