/* T6 Tech — Global Styles (Light Theme) */

:root {
  --brand-blue: #3b82f6;
  --brand-indigo: #6366f1;
  --brand-cyan: #0891b2;
  --bg-page: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-light: rgba(148, 163, 184, 0.25);
}

body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  background: var(--bg-page);
  color: var(--text-secondary);
}

/* Glassmorphism — Light */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Active nav link */
.nav-link.active {
  color: #0891b2;
  background: rgba(59, 130, 246, 0.1);
}

/* Hero gradient background — Light */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6, 182, 212, 0.06), transparent),
    #f8fafc;
}

/* Grid pattern overlay */
.grid-pattern {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-modal-in { animation: modal-in 0.3s ease-out; }

/* Metric counter glow */
.metric-glow {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

/* Filter buttons */
.filter-btn.active {
  background: rgba(59, 130, 246, 0.12);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.4);
}

/* Chart bars animation */
.bar-animate {
  animation: bar-grow 1s ease-out forwards;
  transform-origin: bottom;
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Report images */
.report-img {
  border-radius: 0.75rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  width: 100%;
  height: auto;
}

.pager-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.pager-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }

/* Light theme overrides for legacy dark Tailwind classes in HTML */
main .text-white { color: #0f172a; }
main button.text-white,
main a.text-white[class*="bg-gradient"],
main .bg-gradient-to-r.text-white,
main .bg-gradient-to-br.text-white { color: #ffffff !important; }

main .text-slate-300 { color: #475569; }
main .text-slate-400 { color: #64748b; }

main .border-white\/10 { border-color: rgba(148, 163, 184, 0.25); }
main .border-white\/5 { border-color: rgba(148, 163, 184, 0.15); }
main .bg-white\/5 { background-color: rgba(241, 245, 249, 0.8); }
main .hover\:bg-white\/10:hover { background-color: rgba(241, 245, 249, 1); }

main .via-blue-950\/20 { --tw-gradient-to: rgb(239 246 255 / 0.8) var(--tw-gradient-to-position); }
main .via-indigo-950\/20 { --tw-gradient-to: rgb(238 242 255 / 0.8) var(--tw-gradient-to-position); }
