/* ==========================================================================
   STYLE KHUSUS MEDIA PEMBELAJARAN INTERAKTIF: PELUANG USAHA
   SMK NEGERI 1 MUNDU - KELAS XI
   ========================================================================== */

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

:root {
  --primary-navy: #0f172a;
  --ocean-blue: #0284c7;
  --ocean-light: #e0f2fe;
  --maritime-teal: #0d9488;
  --gold-accent: #f59e0b;
  --emerald-success: #10b981;
  --coral-danger: #ef4444;
}

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

.font-serif-cert {
  font-family: 'Playfair Display', Georgia, serif;
}

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

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

.glass-dark {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Animated Gradient Background */
.gradient-bahari {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 50%, #0d9488 100%);
}

.gradient-card {
  background: linear-gradient(145deg, #ffffff 0%, #f0fdf4 100%);
}

/* Custom Card Hover Effects */
.interactive-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.interactive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(2, 132, 199, 0.18);
}

/* Pulse Glow */
@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(2, 132, 199, 0);
  }
}
.pulse-glow {
  animation: softPulse 2.5s infinite;
}

/* Flip Card Styles */
.flip-card-container {
  perspective: 1000px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card-container.flipped .flip-card-inner,
.flip-card-container:hover .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1rem;
}
.flip-card-back {
  transform: rotateY(180deg);
}

/* Badge & Indicator Styles */
.badge-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 1px solid #fcd34d;
}

.badge-navy {
  background: #0f172a;
  color: #38bdf8;
  border: 1px solid #1e293b;
}

/* Tab Navigation Animation */
.nav-tab-btn {
  position: relative;
  transition: all 0.25s ease;
}
.nav-tab-btn.active {
  color: #0284c7;
  font-weight: 700;
}
.nav-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: #0284c7;
  border-radius: 9999px;
}

/* Certificate Styles for Preview & Print */
#certificate-container {
  background: #fff;
  border: 12px double #b45309;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.25);
  position: relative;
}

#certificate-container::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #d97706;
  pointer-events: none;
}

/* Watermark Pattern */
.bg-watermark {
  background-image: radial-gradient(#0284c7 0.75px, transparent 0.75px), radial-gradient(#0d9488 0.75px, #f8fafc 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
}

/* Print Optimization */
@media print {
  body * {
    visibility: hidden;
  }
  #print-area, #print-area * {
    visibility: visible;
  }
  #print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  .no-print {
    display: none !important;
  }
}

/* Radio Option Styling for Quiz */
.quiz-option-label {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}
.quiz-option-label:hover {
  border-color: #0284c7;
  background-color: #f0f9ff;
}
.quiz-option-label.selected {
  border-color: #0284c7;
  background-color: #e0f2fe;
}
.quiz-option-label.correct {
  border-color: #10b981;
  background-color: #ecfdf5;
}
.quiz-option-label.wrong {
  border-color: #ef4444;
  background-color: #fef2f2;
}
