/* CineCraft H3 - Custom Styling & Cinema Aesthetics */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Prompt:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
  --primary-accent: #38bdf8;
  --secondary-accent: #818cf8;
  --bg-dark: #090d16;
  --panel-bg: rgba(16, 24, 42, 0.85);
  --border-color: rgba(56, 189, 248, 0.15);
}

body {
  font-family: 'Prompt', 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(129, 140, 248, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(244, 63, 94, 0.04) 0%, transparent 60%);
  background-attachment: fixed;
  color: #f1f5f9;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b1120;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glowing Border & Cards */
.cinema-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinema-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 10px 30px -10px rgba(56, 189, 248, 0.15);
  transform: translateY(-2px);
}

.cinema-card-active {
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25) !important;
}

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glow Badges */
.badge-glow {
  box-shadow: 0 0 12px currentColor;
}

/* Pulsing Recording Indicator */
@keyframes recordPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.recording-dot {
  animation: recordPulse 2s infinite ease-in-out;
}

/* Shimmer Effect */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmerAnim 2.5s infinite;
}

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

/* Toast Notification Animation */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-animate {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom Checkbox / Radio styling */
input[type="checkbox"], input[type="radio"] {
  accent-color: #38bdf8;
}

/* Transitions */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.2s ease;
}
.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

/* Grand Cinema Poster Styles */
.grand-poster-card {
  width: 480px;
  height: 275px;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@media (max-width: 1024px) {
  .grand-poster-card {
    width: 380px;
    height: 230px;
  }
}

@media (max-width: 640px) {
  .grand-poster-card {
    width: 300px;
    height: 190px;
  }
}

.grand-poster-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 60px -15px rgba(56, 189, 248, 0.4);
}

.grand-poster-active {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.5), inset 0 0 20px rgba(56, 189, 248, 0.25) !important;
}

.smooth-scroll-x {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.cinema-nav-btn {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  transition: all 0.2s ease;
}

.cinema-nav-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.8);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  transform: scale(1.08);
}

/* Studio & Audit Badges */
.badge-critical {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.badge-passed {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.audit-pulse {
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.audio-track-lane {
  border-left: 3px solid #38bdf8;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.05) 0%, rgba(15, 23, 42, 0.6) 100%);
}

/* Grand Navigation Tabs Styles */
.grand-tab-btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 0.875rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(51, 65, 85, 0.8);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #e2e8f0;
  cursor: pointer;
  user-select: none;
}

@media (min-width: 768px) {
  .grand-tab-btn {
    padding: 0.75rem 1.35rem;
    font-size: 0.925rem;
  }
}

.grand-tab-btn:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.6);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.15);
}

.grand-tab-btn-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28) 0%, rgba(37, 99, 235, 0.35) 100%) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), inset 0 0 15px rgba(56, 189, 248, 0.2) !important;
  transform: translateY(-2px) scale(1.02);
}

.grand-tab-icon {
  font-size: 1.25rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

@media (min-width: 768px) {
  .grand-tab-icon {
    font-size: 1.4rem;
  }
}

.grand-tab-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

