/* KOIST v6.0 - Main Application Styles */

* { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navigation dropdown */
.nav-dropdown-menu { transform: translateY(4px); }
.nav-dropdown:hover .nav-dropdown-menu { transform: translateY(0); }

/* Prose enhancements */
.prose img { border-radius: var(--radius-lg); }
.prose a { text-decoration-color: var(--color-primary); text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose table th, .prose table td { border: 1px solid var(--color-border); padding: 0.75rem; text-align: left; }
.prose table th { background: var(--color-bg-subtle); font-weight: 600; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Selection */
::selection { background: var(--color-primary-light); color: var(--color-primary-dark); }

/* Focus ring */
*:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

/* Contact Spotlight */
.contact-spotlight {
  position: fixed;
  top: 30%;
  left: 40%;
  transform: translate(-50%, -50%);
  width: 400px;
  min-height: 200px;
  padding: 32px 36px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(240,247,255,0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(59,130,246,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
  z-index: 9000;
  animation: spotlightIn 300ms ease-out forwards;
}

.contact-spotlight__close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: #94a3b8; transition: all 150ms;
}
.contact-spotlight__close:hover { background: rgba(0,0,0,0.05); color: #475569; }

.contact-spotlight__dept {
  font-size: 14px; color: #64748b; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.contact-spotlight__name { font-size: 24px; font-weight: 700; color: #1e293b; margin-bottom: 2px; }
.contact-spotlight__title { font-size: 36px; font-weight: 700; color: #1e293b; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 12px; }
.contact-spotlight__phone {
  font-size: 48px; font-weight: 800; color: #2563eb; line-height: 1.1; letter-spacing: -0.01em;
  text-shadow: 0 0 20px rgba(37,99,235,0.3), 0 0 40px rgba(37,99,235,0.1);
  animation: phonePulse 600ms ease-in-out 400ms 1;
  margin-bottom: 8px;
}
.contact-spotlight__email { font-size: 16px; color: #64748b; margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.contact-spotlight__actions { display: flex; gap: 10px; }

.btn-spotlight {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 12px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: all 200ms; cursor: pointer;
}
.btn-spotlight--call { background: var(--gradient-cta); color: white; box-shadow: var(--shadow-primary); }
.btn-spotlight--call:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37,99,235,0.25); }
.btn-spotlight--email { background: white; color: #475569; border: 1px solid #e2e8f0; }
.btn-spotlight--email:hover { background: #f8fafc; border-color: #cbd5e1; }

@media (max-width: 767px) {
  .contact-spotlight { width: 90vw; left: 50%; top: 35%; padding: 24px 20px; }
  .contact-spotlight__title { font-size: 28px; }
  .contact-spotlight__phone { font-size: 36px; }
}

/* Tailwind CDN fallback */
.no-tailwind body { max-width: 1200px; margin: 0 auto; padding: 20px; }
