/* AI Subtitle Translator - Futuristic Platform Design */

/* Color Variables */

.upload-translate-section {
    background: var(--gradient-primary);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.upload-translate-header h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.upload-zone {
    border: 2px dashed var(--primary-teal-light);
    margin-bottom: 20px;
    padding: 20px;
    border-radius: var(--border-radius);
}

.upload-text {
    color: var(--primary-teal-dark);
}

.btn {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: var(--border-radius);
}

.btn-upload, .btn-confirm, .btn-translate {
    background: var(--secondary-teal);
    color: white;
}

.btn-translate {
    margin-top: 10px;
    background: var(--accent-teal);
}

:root {
  --primary-teal: #14b8a6;
  --primary-teal-dark: #0f766e;
  --primary-teal-light: #5eead4;
  --secondary-teal: #2dd4bf;
  --accent-teal: #7dd3fc;
  
  --dark-gray: #1f2937;
  --dark-gray-light: #374151;
  --medium-gray: #6b7280;
  --light-gray: #f3f4f6;
  --white: #ffffff;
  
  --gradient-primary: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark-gray) 0%, var(--dark-gray-light) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  
  --shadow-soft: 0 4px 24px rgba(20, 184, 166, 0.15);
  --shadow-medium: 0 8px 32px rgba(20, 184, 166, 0.2);
  --shadow-strong: 0 16px 48px rgba(20, 184, 166, 0.25);
  --shadow-dark: 0 8px 32px rgba(31, 41, 55, 0.3);
  
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(20, 184, 166, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-teal);
  border-radius: 4px;
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-teal-dark);
}

/* Language Selector */
.language-selector {
  display: flex;
  align-items: center;
}

.language-select {
  background: var(--primary-teal);
  border: 2px solid var(--primary-teal-dark);
  border-radius: 8px;
  color: white;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;026-01-25T22:23:26Z INF cloudflared will not automatically update on Windows systems.
  2026-01-25T22:23:26Z INF Generated Connector ID: 35f06f1a-f99f-4e16-9d42-5ae3a46bf252
  2026-01-25T22:23:26Z INF Initial protocol quic
  2026-01-25T22:23:26Z INF ICMP proxy will use 192.168.0.117 as source for IPv4
  2026-01-25T22:23:26Z INF ICMP proxy will use fe80::c9d8:dc26:a911:a58 in zone Wi-Fi as source for IPv6
  2026-01-25T22:23:26Z INF cloudflared does not support loading the system root certificate pool on Windows. Please use --origin-ca-pool <PATH> to specify the path to the certificate pool
  2026-01-25T22:23:26Z INF cloudflared does not support loading the system root certificate pool on Windows. Please use --origin-ca-pool <PATH> to specify the path to the certificate pool
  2026-01-25T22:23:26Z INF ICMP proxy will use 192.168.0.117 as source for IPv4
  2026-01-25T22:23:26Z INF Tunnel connection curve preferences: [X25519MLKEM768 CurveP256] connIndex=0 event=0 ip=198.41.192.227
  2026-01-25T22:23:26Z INF ICMP proxy will use fe80::c9d8:dc26:a911:a58 in zone Wi-Fi as source for IPv6
  2026-01-25T22:23:26Z INF Starting metrics server on 127.0.0.1:20241/metrics
  2026-01-25T22:23:26Z INF Registered tunnel connection connIndex=0 connection=c8a6a8b5-8539-4b46-b059-9e177c0ed49c event=0 ip=198.41.192.227 location=cbr01 protocol=quic
  2026-01-25T22:23:26Z INF Tunnel connection curve preferences: [X25519MLKEM768 CurveP256] connIndex=1 event=0 ip=198.41.200.63
  2026-01-25T22:23:27Z INF Registered tunnel connection connIndex=1 connection=0e9ce5df-5c54-4b4a-8c8e-c31bb7abe9a2 event=0 ip=198.41.200.63 location=syd06 protocol=quic
  2026-01-25T22:23:27Z INF Tunnel connection curve preferences: [X25519MLKEM768 CurveP256] connIndex=2 event=0 ip=198.41.200.53
  2026-01-25T22:23:28Z INF Registered tunnel connection connIndex=2 connection=ba31addf-45e4-4f92-828e-05d74687d7ce event=0 ip=198.41.200.53 location=syd05 protocol=quic
  2026-01-25T22:23:28Z INF Tunnel connection curve preferences: [X25519MLKEM768 CurveP256] connIndex=3 event=0 ip=198.41.192.7
  2026-01-25T22:23:28Z WRN Failed to serve tunnel connection error="context canceled" connIndex=3 event=0 ip=198.41.192.7
  2026-01-25T22:23:28Z INF Retrying connection in up to 2s connIndex=3 event=0 ip=198.41.192.7
  2026-01-25T22:23:29Z WRN Connection terminated error="context canceled" connIndex=3
  transition: var(--transition);
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.language-select:hover {
  background: var(--primary-teal-dark);
  border-color: var(--secondary-teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.language-select:focus {
  outline: none;
  background: var(--primary-teal-dark);
  border-color: var(--secondary-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.5);
}

.language-select option {
  background: var(--dark-gray);
  color: white;
  padding: 8px;
}

/* Language Selector Responsive */
@media (max-width: 768px) {
  .language-selector {
    margin-bottom: 10px;
  }
  
  .language-select {
    min-width: 100px;
    font-size: 12px;
    padding: 6px 10px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background: var(--white);
  overflow-x: hidden;
  padding-top: 80px; /* 네비게이션 높이만큼 상단 패딩 추가 */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark-gray);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.1);
  padding: 1rem 0;
  transition: var(--transition);
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--dark-gray) !important;
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.brand-text {
  font-size: 24px;
  font-weight: 800;
}

.navbar-nav .nav-link {
  color: var(--medium-gray) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: var(--transition);
  margin: 0 4px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-teal) !important;
  background: rgba(20, 184, 166, 0.1);
}

/* 스크롤 시 네비게이션 스타일 */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(25px);
}

/* Auth Buttons */
.auth-btn {
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  margin: 0 4px !important;
}

/* Form elements on dark backgrounds */
.card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(20, 184, 166, 0.2) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.card-header {
  background: var(--gradient-primary) !important;
  color: white !important;
  border-bottom: none !important;
}

.card-body {
  background: rgba(255, 255, 255, 0.98) !important;
  color: var(--dark-gray) !important;
}

.form-control {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(20, 184, 166, 0.2) !important;
  color: var(--dark-gray) !important;
  font-weight: 500 !important;
}

.form-control:focus {
  background: white !important;
  border-color: var(--primary-teal) !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15) !important;
  color: var(--dark-gray) !important;
}

.form-control::placeholder {
  color: var(--medium-gray) !important;
  opacity: 0.8 !important;
}

.form-label {
  color: var(--dark-gray) !important;
  font-weight: 600 !important;
  text-shadow: none !important;
}

.alert {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(20, 184, 166, 0.2) !important;
  backdrop-filter: blur(10px) !important;
  font-weight: 500 !important;
}

.alert-success {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #059669 !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #dc2626 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* Text visibility improvements */
.text-center p {
  color: var(--dark-gray) !important;
  font-weight: 500 !important;
}

.text-center a {
  color: var(--primary-teal) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.text-center a:hover {
  color: var(--primary-teal-dark) !important;
  text-decoration: underline !important;
}

.login-btn {
  color: var(--primary-teal) !important;
  border: 2px solid var(--primary-teal);
}

.login-btn:hover {
  background: var(--primary-teal) !important;
  color: white !important;
}

.register-btn {
  background: var(--gradient-primary) !important;
  color: white !important;
  border: none;
}

.register-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.points-badge {
  background: var(--gradient-primary) !important;
  color: white !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.user-btn {
  background: #2ed9ce !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.user-btn span, .user-btn i {
  color: #fff !important;
}

.user-btn:hover {
  background: #2ed9ce !important;
  color: #fff !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 80px; /* 상단 패딩 줄임 (네비게이션 고정으로 인해) */
  background: linear-gradient(135deg, #0a0b1e 0%, #1a1b2e 50%, #16213e 100%);
  overflow: hidden;
  perspective: 1000px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.neural-network {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 60%, rgba(45, 212, 191, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(125, 211, 252, 0.06) 0%, transparent 50%);
  animation: neuralPulse 6s ease-in-out infinite;
}

@keyframes neuralPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* 3D 미래지향적 배경 요소들 */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.float-element {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, 
    rgba(20, 184, 166, 0.2) 0%, 
    rgba(45, 212, 191, 0.15) 50%, 
    rgba(125, 211, 252, 0.1) 100%);
  border: 1px solid rgba(20, 184, 166, 0.3);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  animation: float3D 12s ease-in-out infinite;
  box-shadow: 
    0 0 30px rgba(20, 184, 166, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.elem-1 { 
  top: 15%; 
  left: 8%; 
  animation-delay: 0s; 
  transform: rotateX(45deg) rotateY(0deg);
}
.elem-2 { 
  top: 50%; 
  right: 12%; 
  animation-delay: 4s; 
  transform: rotateX(-30deg) rotateY(45deg);
}
.elem-3 { 
  bottom: 25%; 
  left: 65%; 
  animation-delay: 8s; 
  transform: rotateX(60deg) rotateY(-30deg);
}

@keyframes float3D {
  0%, 100% { 
    transform: translateY(0px) translateZ(0px) rotateX(45deg) rotateY(0deg); 
    opacity: 0.6;
  }
  25% { 
    transform: translateY(-30px) translateZ(50px) rotateX(75deg) rotateY(90deg); 
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-20px) translateZ(100px) rotateX(45deg) rotateY(180deg); 
    opacity: 1;
  }
  75% { 
    transform: translateY(-40px) translateZ(50px) rotateX(15deg) rotateY(270deg); 
    opacity: 0.7;
  }
}

/* 3D 격자 배경 */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(20, 184, 166, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: perspective(500px) rotateX(60deg) scale(2);
  transform-origin: center top;
  opacity: 0.3;
  animation: gridFloat 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes gridFloat {
  0%, 100% { transform: perspective(500px) rotateX(60deg) scale(2) translateY(0px); }
  50% { transform: perspective(500px) rotateX(65deg) scale(2.1) translateY(-20px); }
}

/* 홀로그램 효과 */
.hologram-effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.hologram-ring {
  position: absolute;
  border: 2px solid rgba(20, 184, 166, 0.4);
  border-radius: 50%;
  animation: holoRotate 15s linear infinite;
}

.ring-1 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 20%;
  animation-delay: 0s;
  transform: rotateX(75deg);
}

.ring-2 {
  width: 150px;
  height: 150px;
  bottom: 30%;
  left: 25%;
  animation-delay: 5s;
  transform: rotateY(45deg);
}

.ring-3 {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 15%;
  animation-delay: 10s;
  transform: rotateX(45deg) rotateY(45deg);
}

@keyframes holoRotate {
  0% { transform: rotateZ(0deg) rotateX(75deg); }
  100% { transform: rotateZ(360deg) rotateX(75deg); }
}

/* 파티클 효과 */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(20, 184, 166, 0.8);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.5);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; }

@keyframes particleFloat {
  0% { 
    transform: translateY(100vh) scale(0); 
    opacity: 0; 
  }
  10% { 
    opacity: 1; 
    transform: translateY(90vh) scale(1); 
  }
  90% { 
    opacity: 1; 
    transform: translateY(10vh) scale(1); 
  }
  100% { 
    transform: translateY(0vh) scale(0); 
    opacity: 0; 
  }
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-section .hero-title,
.hero-section .hero-description,
.hero-section .stat-label {
  color: white;
}

.hero-section .hero-badge {
  background: rgba(20, 184, 166, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.4);
  backdrop-filter: blur(10px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-teal);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--medium-gray);
  margin-bottom: 32px;
  max-width: 90%;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-teal);
  display: block;
}

.stat-label {
  font-size: 14px;
  color: var(--medium-gray);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-hero-secondary {
  color: var(--dark-gray) !important;
  border: 2px solid var(--dark-gray);
}

.btn-hero-secondary:hover {
  background: var(--dark-gray) !important;
  color: white !important;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  z-index: 2;
}

.ai-face-container {
  position: relative;
  margin-bottom: 40px;
}

.ai-face {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.face-circle {
  width: 120px;
  height: 120px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  position: relative;
  z-index: 2;
  animation: aiPulse 3s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.speech-waves {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.wave {
  position: absolute;
  border: 2px solid var(--primary-teal);
  border-radius: 50%;
  opacity: 0;
  animation: waveAnimation 2s ease-out infinite;
}

.wave-1 {
  width: 140px;
  height: 140px;
  animation-delay: 0s;
}

.wave-2 {
  width: 180px;
  height: 180px;
  animation-delay: 0.5s;
}

.wave-3 {
  width: 220px;
  height: 220px;
  animation-delay: 1s;
}

@keyframes waveAnimation {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.translation-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  min-width: 120px;
  animation: flowGlow 4s ease-in-out infinite;
}

.step-1 { animation-delay: 0s; }
.step-2 { animation-delay: 1s; }
.step-3 { animation-delay: 2s; }

@keyframes flowGlow {
  0%, 100% { box-shadow: var(--shadow-soft); }
  50% { box-shadow: var(--shadow-medium); }
}

.flow-step i {
  font-size: 24px;
  color: var(--primary-teal);
  margin-bottom: 8px;
}

.flow-step span {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-gray);
  text-align: center;
}

.flow-arrow {
  color: var(--primary-teal);
  font-size: 20px;
  animation: arrowPulse 2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Upload Section */
.upload-section {
  padding: 80px 0;
  background: white;
}

.login-required-card,
.upload-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-medium);
  margin: 2rem auto;
  max-width: 800px;
  overflow: hidden;
  transition: var(--transition);
}

.login-required-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 250, 0.95) 100%);
  border: 2px solid var(--primary-teal-light);
}

.login-required-card .card-header {
  background: none !important;
  border: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-required-card .card-header h3 {
  color: var(--primary-teal-dark);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.login-required-card .card-header h3 i {
  color: var(--primary-teal);
  font-size: 1.8rem;
}

.login-required-card .card-body {
  padding: 0;
}

.login-required-card .card-body p {
  color: var(--medium-gray);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  min-width: 140px;
}

.auth-buttons .btn-primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: var(--shadow-soft);
}

.auth-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.auth-buttons .btn-outline-primary {
  border: 2px solid var(--primary-teal);
  color: var(--primary-teal);
  background: transparent;
}

.auth-buttons .btn-outline-primary:hover {
  background: var(--primary-teal);
  color: white;
  transform: translateY(-2px);
}

/* Upload Zone */
.upload-zone {
  position: relative;
  margin-bottom: 32px;
}

.upload-label {
  display: block;
  padding: 48px 32px;
  border: 2px dashed var(--primary-teal);
  border-radius: var(--border-radius);
  background: rgba(20, 184, 166, 0.05);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-label:hover {
  border-color: var(--primary-teal-dark);
  background: rgba(20, 184, 166, 0.1);
}

#videoFile {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.upload-icon {
  font-size: 48px;
  color: var(--primary-teal);
  margin-bottom: 16px;
}

.upload-text h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-gray);
}

.upload-text p {
  color: var(--medium-gray);
  margin-bottom: 16px;
}

.file-types {
  display: inline-block;
  background: var(--primary-teal);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* Upload Controls */
.upload-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.upload-status {
  font-weight: 600;
  color: var(--medium-gray);
}

/* Language Selection */
.language-selection {
  margin-bottom: 32px;
}

.form-label {
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 12px;
  display: block;
}

.language-grid {
  display: flex;
  gap: 16px;
  align-items: end;
}

.form-select {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(20, 184, 166, 0.2);
  border-radius: var(--border-radius);
  background: white;
  color: var(--dark-gray);
  font-weight: 500;
  transition: var(--transition);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Translate Section */
.translate-section {
  text-align: center;
  margin-bottom: 32px;
}

.btn-translate {
  width: 100%;
  padding: 20px;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--border-radius);
  background: var(--gradient-primary);
  border: none;
  color: white;
  transition: var(--transition);
}

.btn-translate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-translate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Status Messages */
.translation-status,
.status-message {
  padding: 16px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
}

.status-message.success {
  background: rgba(34, 197, 94, 0.1);
  color: #059669;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Download Section */
.download-section {
  text-align: center;
  padding: 32px;
  background: rgba(34, 197, 94, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: #059669;
  margin-bottom: 24px;
}

/* Features Section */
.features-section {
  padding: 80px 0;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-soft);
  height: 100%;
  transition: var(--transition);
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark-gray);
}

.feature-card p {
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-badge {
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-teal);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

/* Demo Section */
.demo-section {
  padding: 80px 0;
  background: white;
}

.demo-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.demo-content p {
  font-size: 1.25rem;
  color: var(--medium-gray);
  margin-bottom: 40px;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--dark-gray);
}

.demo-feature i {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.video-demo-container {
  display: flex;
  justify-content: center;
}

.video-player {
  background: var(--dark-gray);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-strong);
}

.video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--dark-gray-light);
}

.video-controls {
  display: flex;
  gap: 8px;
}

.control-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-teal);
}

.video-title {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.video-content {
  padding: 32px 20px;
}

.waveform {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
  height: 80px;
  margin-bottom: 24px;
}

.wave-bar {
  width: 6px;
  background: var(--primary-teal);
  border-radius: 3px;
  animation: waveMove 1.5s ease-in-out infinite;
}

.wave-bar:nth-child(2n) { animation-delay: 0.1s; }
.wave-bar:nth-child(3n) { animation-delay: 0.2s; }
.wave-bar:nth-child(4n) { animation-delay: 0.3s; }

@keyframes waveMove {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

.subtitle-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subtitle-line {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  transition: var(--transition);
}

.subtitle-line.active {
  background: var(--primary-teal);
}

/* Trust Section */
.trust-section {
  background: none !important;
  padding: 80px 0 60px 0;
}

.trust-section .section-header h2,
.trust-section .section-header p {
  color: white;
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 64px;
}

.metric-item {
  text-align: center;
}

.metric-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-teal);
  display: block;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 16px;
  color: var(--medium-gray);
  font-weight: 500;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 12px 24px;
  border: none;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
}

.btn-outline-primary {
  border: 2px solid var(--primary-teal);
  color: #222 !important;
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-teal);
  color: white !important;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.btn-outline-danger {
  border: 2px solid #ef4444;
  color: #ef4444;
  background: transparent;
}

.btn-outline-danger:hover {
  background: #ef4444;
  color: white;
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: white;
  color: var(--dark-gray);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

/* Dropdown */
.dropdown-menu {
  background: white;
  border: 1px solid rgba(20, 184, 166, 0.1);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 8px;
}

.dropdown-item {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--dark-gray);
  transition: var(--transition);
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(20, 184, 166, 0.1);
  color: var(--primary-teal);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    gap: 16px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .translation-flow {
    flex-direction: column;
  }
  
  .flow-arrow {
    transform: rotate(90deg);
  }
  
  .language-grid {
    flex-direction: column;
  }
  
  .demo-features {
    margin-bottom: 40px;
  }
  
  .trust-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .metric-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 80px 0 60px; /* 모바일에서도 상단 패딩 줄임 */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .card-body {
    padding: 24px;
  }
  
  .upload-label {
    padding: 32px 16px;
  }
  
  .trust-metrics {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.ms-2 { margin-left: 0.5rem; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.dashboard {
    background-image: url('/static/images/dashboard-background.jpg');
    background-size: cover;
    background-position: center;
    min-height: calc(100vh - 80px); /* 네비게이션 높이 제외 */
    margin-top: 0; /* 상단 마진 제거 */
}

/* 네비게이션 로그인/회원가입 버튼 - primary teal */
.navbar-nav .btn-login,
.navbar-nav .btn-register {
  background: var(--primary-teal) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(20,184,166,0.10);
  transition: var(--transition);
  display: inline-block;
}

.navbar-nav .btn-login:hover,
.navbar-nav .btn-register:hover {
  background: var(--primary-teal-dark) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(20,184,166,0.18);
  transform: translateY(-2px) scale(1.04);
}

.login-required-pill {
  display: inline-block;
  background: var(--primary-teal);
  color: #fff !important;
  padding: 0.5em 2em;
  border-radius: 999px;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(20,184,166,0.10);
  letter-spacing: -1px;
  line-height: 1.2;
  text-align: center;
}

.login-required-pill i {
  color: #fff !important;
  opacity: 0.85;
}

.trust-pill {
  display: inline-block;
  align-items: center;
  background: var(--primary-teal);
  color: #fff;
  border-radius: 999px;
  padding: 1.2em 3em 1.1em 3em;
  box-shadow: 0 4px 24px rgba(20,184,166,0.18);
  text-align: center;
  margin: 2cap auto 2.5rem auto;
  font-family: 'Inter', sans-serif;
  min-width: 320px;
  max-width: 100%;
  transition: box-shadow 0.2s;
}
.trust-pill-title, .trust-pill-desc {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  display: inline;
}
.trust-pill-title i {
  color: #ffd166;
  margin-right: 0.5em;
}
@media (max-width: 600px) {
  .trust-pill {
    padding: 1em 1.2em;
    min-width: 0;
  }
  .trust-pill-title, .trust-pill-desc {
    font-size: 1rem;
  }
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  background: var(--primary-teal);
  color: #fff;
  border-radius: 999px;
  padding: 1.1em 2.5em 1.1em 2.2em;
  box-shadow: 0 4px 24px rgba(20,184,166,0.18);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 auto 2.5rem auto;
  text-align: center;
  min-width: 320px;
  max-width: 100%;
  transition: box-shadow 0.2s;
}
.cta-pill i {
  font-size: 1.7rem;
  color: #fff;
  filter: drop-shadow(0 2px 6px rgba(20,184,166,0.18));
}
@media (max-width: 600px) {
  .cta-pill {
    padding: 0.8em 1.1em;
    font-size: 1rem;
    min-width: 0;
  }
  .cta-pill i {
    font-size: 1.1rem;
  }
}

/* Call to Action Area - pill+버튼 전체 이동 */
.cta-area {
  margin-top: -5cm;
}

/* 모바일/작은 화면에서 햄버거 메뉴 배경/글씨색 개선 */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #222 !important;
    color: #fff !important;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  }
  .navbar-nav .nav-link,
  .navbar-nav .auth-btn,
  .navbar-nav .user-btn {
    color: #fff !important;
    font-weight: 600;
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: transparent !important;
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .auth-btn:hover,
  .navbar-nav .user-btn:hover {
    background: #444 !important;
    color: #fff !important;
  }
}
/* 햄버거 버튼(모바일 메뉴 토글) 색상 진하게 */
.navbar-toggler {
  border-color: #222 !important;
}
.navbar-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(34,34,34,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* 보안 안내 스타일 */
.security-notice {
  margin: 20px 0;
  padding: 15px;
  border-radius: var(--border-radius);
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.security-notice .btn {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: var(--transition);
  border: 2px solid #dc3545;
  color: #dc3545;
  background: transparent;
}

.security-notice .btn:hover {
  background: #dc3545;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.security-notice .btn:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* 툴팁 스타일 */
.tooltip {
  font-size: 0.85rem;
}

.tooltip-inner {
  background: #dc3545;
  color: white;
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 300px;
  text-align: center;
}
