/* ==========================================================================
   ICONIC CONGRESS - UNIVERSAL HEADER & FOOTER DESIGN SYSTEM
   Bespoke, Academic Prestige, Award-Winning Glassmorphism Architecture
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOPBAR INSTITUTIONAL (DESKTOP)
   -------------------------------------------------------------------------- */
.topbar-institutional {
  background-color: #080c16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 8px 32px;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
  font-size: 0.76rem;
  color: #94a3b8;
  position: relative;
  z-index: 99991;
  transition: all 0.25s ease;
}

.topbar-inner {
  max-width: 1560px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-divider {
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.02em;
}

.institution-name {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #e2e8f0;
}

.congress-date {
  color: #f1f5f9;
}

.pulse-indicator {
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #f38d5e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(243, 141, 94, 0.7);
  animation: pulse-glow 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(243, 141, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(243, 141, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 141, 94, 0); }
}

.academic-index-tag {
  color: #38bdf8;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
}

.topbar-link {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar-link:hover {
  color: #ffffff;
}

.topbar-lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 2px;
  gap: 2px;
}

.topbar-lang-pill .lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-lang-pill .lang-btn.active {
  background: #e05626;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. MAIN NAVBAR & GLASSMORPHISM CONTAINER
   -------------------------------------------------------------------------- */
.award-nav-wrapper {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.award-nav {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.92;
  transform: translateY(-0.5px);
}

.nav-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   3. DESKTOP NAVIGATION LINKS & DROPDOWNS
   -------------------------------------------------------------------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links > li {
  position: relative;
}

.nav-link {
  color: #334155 !important;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  position: relative;
}

.nav-link:hover {
  color: #e05626;
  background-color: rgba(224, 86, 38, 0.05);
}

.nav-link.active,
.nav-item-dropdown.active-parent > .nav-link {
  color: #e05626;
  font-weight: 700;
}

.nav-link.active::after,
.nav-item-dropdown.active-parent > .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2.5px;
  background: #e05626;
  border-radius: 2px;
}

.dropdown-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #94a3b8;
}

.nav-item-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
  color: #e05626;
}

/* Luxury Dropdown Menu Container (Zero-Gap Seamless Hover Bridge & Grace Period) */
.nav-item-dropdown {
  padding-bottom: 20px !important;
  margin-bottom: -20px !important;
  position: relative !important;
}

.nav-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(4px) !important;
  min-width: 265px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 40px -4px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.03) !important;
  padding: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s !important;
  transition-delay: 0.25s !important; /* Generous 250ms grace period on mouse exit */
  z-index: 100000 !important;
}

.nav-dropdown-menu.wide-menu {
  min-width: 295px !important;
}

/* Invisible Bridge covering parent nav link down into dropdown */
.nav-dropdown-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -26px !important;
  left: -25px !important;
  right: -25px !important;
  height: 32px !important;
  background: transparent !important;
  display: block !important;
  z-index: 100001 !important;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
  transition-delay: 0s !important; /* Immediate instant opening */
}

.nav-dropdown-item {
  margin: 2px 0;
}

.nav-dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.nav-dropdown-link:hover {
  background: #f8fafc;
  color: #e05626;
  padding-left: 17px;
}

.featured-item .nav-dropdown-link {
  font-weight: 600;
  background: rgba(248, 250, 252, 0.7);
}

.dropdown-separator {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 4px;
  list-style: none;
}

.nav-dropdown-badge {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-dropdown-badge.coral {
  background: rgba(224, 86, 38, 0.1);
  color: #e05626;
}

.nav-dropdown-badge.cyan {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.nav-dropdown-badge.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* --------------------------------------------------------------------------
   4. HEADER ACTIONS (CTAS & MOBILE HAMBURGER)
   -------------------------------------------------------------------------- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-nav-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.18s ease;
}

.btn-nav-ghost:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-0.5px);
}

.btn-nav-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #e05626 0%, #ea580c 100%);
  color: #ffffff !important;
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(224, 86, 38, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-nav-primary:hover {
  background: linear-gradient(135deg, #c94418 0%, #c2410c 100%);
  box-shadow: 0 6px 18px rgba(224, 86, 38, 0.42);
  transform: translateY(-1px);
}

.btn-nav-primary svg {
  transition: transform 0.2s ease;
}

.btn-nav-primary:hover svg {
  transform: translateX(3px);
}

/* Quick Mobile Pill CTA */
.btn-nav-mobile-quick {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-heading, 'Inter', sans-serif);
  color: #ffffff !important;
  background: linear-gradient(135deg, #e05626, #ea580c);
  border-radius: 7px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(224, 86, 38, 0.25);
  white-space: nowrap;
}

/* Bespoke Mobile Hamburger Button */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  color: #0f172a;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.15s ease;
}

.nav-mobile-toggle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.nav-mobile-toggle:active {
  transform: scale(0.95);
  background: #e2e8f0;
}

.nav-mobile-toggle svg {
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   5. MOBILE RESPONSIVE BEHAVIOR (MAX-WIDTH: 1024PX)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .topbar-institutional {
    display: none !important;
  }

  .award-nav-wrapper {
    height: 64px !important;
  }

  .award-nav {
    padding: 0 16px !important;
  }

  .nav-logo-img {
    height: 34px !important;
  }

  .nav-links {
    display: none !important;
  }

  .btn-nav-ghost,
  .btn-nav-primary {
    display: none !important;
  }

  .btn-nav-mobile-quick {
    display: inline-flex !important;
  }

  .nav-mobile-toggle {
    display: flex !important;
  }

  #adminFloatingDock {
    display: none !important;
  }
}

@media (max-width: 400px) {
  .btn-nav-mobile-quick {
    font-size: 0.74rem !important;
    padding: 6px 10px !important;
  }
  .nav-mobile-toggle {
    width: 40px !important;
    height: 40px !important;
  }
}

/* --------------------------------------------------------------------------
   6. EVRENSEL FOOTER DESIGN
   -------------------------------------------------------------------------- */
.award-footer {
  background: #080c16;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 32px 24px 32px;
  color: #94a3b8;
  font-family: var(--font-body, 'Inter', sans-serif);
  position: relative;
  z-index: 10;
}

.footer-inner {
  max-width: 1560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.3fr;
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
  max-width: 440px;
}

.footer-badges-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.footer-badge.coral {
  color: #f38d5e;
  background: rgba(243, 141, 94, 0.1);
  border: 1px solid rgba(243, 141, 94, 0.25);
}

.footer-badge.cyan {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.footer-badge.emerald {
  color: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.footer-col-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 18px 0;
  letter-spacing: 0.02em;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.86rem;
  transition: all 0.15s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-address {
  font-size: 0.86rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 16px 0;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #f38d5e;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.footer-contact-link:hover {
  color: #ffffff;
}

.footer-sub-bottom {
  max-width: 1560px;
  margin: 48px auto 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sub-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #64748b;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

.footer-legal-links .sep {
  color: #475569;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .award-footer {
    padding: 48px 18px 24px 18px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sub-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* Mobile Drawer Close Fix */
.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 8px 12px;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto !important;
}

/* ==========================================================================
   SUBPAGE TITLES HIGH-CONTRAST GRADIENT FIX (NO WHITE ON LIGHT BACKGROUND)
   ========================================================================== */
body:not(.is-home-page) .subpage-title,
body:not(.is-home-page) h1.subpage-title,
.subpage-hero .subpage-title,
.subpage-title,
h1.entry-title,
.entry-title,
.page-title {
  color: #0f172a !important;
}

body:not(.is-home-page) .subpage-title .gradient-text,
body:not(.is-home-page) h1.subpage-title .gradient-text,
.subpage-hero .subpage-title .gradient-text,
.subpage-title .gradient-text,
h1.entry-title .gradient-text,
.entry-title .gradient-text,
.page-title .gradient-text {
  background: linear-gradient(135deg, #0f172a 15%, #1e293b 50%, #e05626 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important;
}

/* ==========================================================================
   UNIVERSAL DESKTOP CUSTOM CURSOR SYSTEM
   ========================================================================== */
/* Native cursor enabled */

.iconic-custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2147483647;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.iconic-custom-cursor.is-active {
  opacity: 1;
}

.iconic-custom-cursor .cursor-dot {
  position: fixed;
  width: 7px;
  height: 7px;
  background-color: #e05626;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(224, 86, 38, 0.6);
  transition: transform 0.08s ease-out;
}

.iconic-custom-cursor .cursor-ring {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(224, 86, 38, 0.65);
  background: rgba(224, 86, 38, 0.04);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483646;
  transform: translate(-50%, -50%);
  /* backdrop-filter blur removed for razor-sharp text clarity */
  -webkit-/* backdrop-filter blur removed for razor-sharp text clarity */
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background-color 0.2s ease;
}

.iconic-custom-cursor.is-hovering .cursor-ring {
  width: 48px;
  height: 48px;
  border-color: #e05626;
  background: rgba(224, 86, 38, 0.12);
  box-shadow: 0 0 20px rgba(224, 86, 38, 0.25);
}

.iconic-custom-cursor .cursor-trail-pod {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 86, 38, 0.25) 0%, rgba(224, 86, 38, 0) 70%);
  /* filter blur removed for crystal clarity */
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2147483645;
  opacity: 0;
}


/* ========================================================
   ULTRA-SHARP 4K / RETINA HIGH-DEFINITION FIDELITY ENGINE
   ======================================================== */
html, body {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  image-rendering: -webkit-optimize-contrast !important;
  -webkit-text-size-adjust: 100% !important;
}

*, *::before, *::after {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force crisp vector rendering on all headings, titles and text */
h1, h2, h3, h4, h5, h6, .hero-fullbleed-title, .page-title, .section-title, .nav-link, p, span, a, button, input, label {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
}

/* Crisp image rendering across retina, high-dpi and 4k displays */
img, svg, canvas {
  image-rendering: -webkit-optimize-contrast !important;
  backface-visibility: hidden;
}

/* Hairline high-contrast card borders */
.award-card, .track-card, .speaker-card, .date-countdown-card, .footer-col, .rostrum-countdown-deck, .journal-card, .panel-card {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -15px rgba(0, 0, 0, 0.5) !important;
}


/* ZERO-BLUR ABSOLUTE SHARPNESS ENFORCEMENT */
.iconic-custom-cursor .cursor-ring,
.iconic-custom-cursor.is-hovering .cursor-ring,
.iconic-custom-cursor.is-clicking .cursor-ring,
.iconic-custom-cursor .cursor-trail-pod {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
}

.topbar-institutional { display: none !important; height: 0 !important; visibility: hidden !important; }


/* FOOTER BADGES PERMANENT REMOVAL */
.footer-badges-strip,
.footer-badge,
.academic-index-tag {
  display: none !important;
}
