/* Custom Styles for Media Pembelajaran Interaktif Jikoshoukai - SMKN 1 Mundu */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Zen+Maru+Gothic:wght@500;700;900&display=swap');

:root {
  --navy-deep: #0c2138;
  --navy-ocean: #153a5b;
  --navy-light: #245887;
  --sakura-pink: #f472b6;
  --sakura-soft: #fdf2f8;
  --sakura-border: #fbcfe8;
  --emerald-sea: #059669;
  --amber-sand: #f59e0b;
  --bg-sand: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-sand);
  color: #1e293b;
  overflow-x: hidden;
}

.jp-font {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

.jp-traditional {
  font-family: 'Noto Sans JP', serif;
}

/* Background Pattern */
.bg-wave-pattern {
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(21, 58, 91, 0.08) 1px, transparent 1px), radial-gradient(rgba(244, 114, 182, 0.08) 1px, #f8fafc 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* 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;
}

/* Flashcard 3D flip */
.perspective-1000 {
  perspective: 1000px;
}
.transform-style-3d {
  transform-style: preserve-3d;
}
.backface-hidden {
  backface-visibility: hidden;
}
.rotate-y-180 {
  transform: rotateY(180deg);
}

/* Card Neumorphic & Elevation */
.card-soft {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(15, 34, 58, 0.05), 0 8px 10px -6px rgba(15, 34, 58, 0.02);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-soft:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -5px rgba(15, 34, 58, 0.09), 0 10px 10px -5px rgba(15, 34, 58, 0.04);
}

/* Sakura float animation */
@keyframes floatPetal {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(15px) rotate(180deg);
    opacity: 0.5;
  }
  100% {
    transform: translateY(0px) rotate(360deg);
    opacity: 0.8;
  }
}
.animate-float-slow {
  animation: floatPetal 8s ease-in-out infinite;
}

/* Pulse ring */
@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
  }
}
.pulse-indicator {
  animation: pulseRing 2s infinite;
}

/* Speech Wave Bar Animation */
@keyframes soundWave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}
.wave-bar-1 { animation: soundWave 0.8s ease-in-out infinite; }
.wave-bar-2 { animation: soundWave 1.1s ease-in-out infinite 0.2s; }
.wave-bar-3 { animation: soundWave 0.7s ease-in-out infinite 0.4s; }

/* Print Mode for Certificate & Meishi */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-certificate, #printable-certificate * {
    visibility: visible;
  }
  #printable-certificate {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 2cm;
    background: white;
    box-shadow: none;
    z-index: 999999;
  }
  .no-print {
    display: none !important;
  }
}

/* Badges styling */
.badge-gold {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  color: #92400e;
}
.badge-marine {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border: 1px solid #0284c7;
  color: #0369a1;
}
.badge-sakura {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  border: 1px solid #db2777;
  color: #9d174d;
}
