/* Custom Styles & Premium Light-Mode Aesthetics for Turkish Learning Portal (V4.0) */

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

:root {
  --tr-red: #e30a17;
  --tr-red-hover: #c40813;
  --tr-red-subtle: #fef2f2;
  --accent-emerald: #059669;
  --accent-emerald-subtle: #ecfdf5;
  --accent-blue: #2563eb;
  --accent-blue-subtle: #eff6ff;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border-light: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-font {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

code, pre, .font-mono {
  font-family: 'Fira Code', monospace;
}

/* Glassmorphism & Soft Cards */
.glass-panel-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.02);
}

.hero-banner-light {
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 50%, #fee2e2 100%);
  border: 1px solid #fecaca;
  box-shadow: 0 20px 30px -10px rgba(227, 10, 23, 0.08);
}

.hero-banner-amber-light {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 50%, #fef3c7 100%);
  border: 1px solid #fde68a;
  box-shadow: 0 20px 30px -10px rgba(245, 158, 11, 0.08);
}

/* Tab Active State */
.tab-btn {
  white-space: nowrap !important;
}

.tab-active-light {
  color: #ffffff !important;
  background: linear-gradient(135deg, #e30a17 0%, #b91c1c 100%) !important;
  box-shadow: 0 8px 16px -4px rgba(227, 10, 23, 0.35), 0 3px 6px -2px rgba(227, 10, 23, 0.2) !important;
  border-color: #e30a17 !important;
}

.tab-active-light i, .tab-active-light span {
  color: #ffffff !important;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Flashcard 3D Flip Styles */
.perspective-1000 {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1.5rem;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Micro Interactions */
.hover-lift {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.08), 0 10px 15px -3px rgba(15, 23, 42, 0.04);
  border-color: #cbd5e1;
}

/* Virtual Turkish Character Bar */
.tr-key-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 700;
  font-family: 'Space Grotesk', monospace;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
}

.tr-key-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.tr-key-btn:active {
  transform: translateY(1px);
  background: #e2e8f0;
}

/* Audio Pulse Animation */
@keyframes audio-wave {
  0%, 100% { height: 6px; }
  50% { height: 18px; }
}

.audio-bar {
  display: inline-block;
  width: 3px;
  background: #e30a17;
  border-radius: 2px;
  animation: audio-wave 1s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print Stylesheet */
@media print {
  header, footer, nav, .no-print, button {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .tab-content {
    display: block !important;
    page-break-after: always;
  }
}
