/* ===== ICO2026 Components ===== */

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 15px 0;
  background: rgba(5, 8, 16, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ico-border-subtle);
  transition: var(--transition-normal);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(5, 8, 16, 0.98);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ico-text-primary);
  letter-spacing: 2px;
}

.nav-logo-icon {
  height: 36px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--ico-primary-glow));
}

.nav-logo-text span {
  color: var(--ico-primary);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-links a {
  color: var(--ico-text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ico-primary);
  transition: width var(--transition-fast);
}

.nav-links a:hover {
  color: var(--ico-text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--ico-gradient-primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  box-shadow: var(--ico-shadow);
  transform: translateY(-2px);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 4px;
  color: var(--ico-accent);
  transition: transform var(--transition-fast);
  text-shadow: 0 0 8px var(--ico-accent);
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.active .nav-dropdown-toggle::after {
  transform: rotate(180deg);
  color: var(--ico-primary);
  text-shadow: 0 0 10px var(--ico-primary);
}

.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--ico-text-primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: rgba(10, 15, 26, 0.98);
  border: 1px solid var(--ico-border-subtle);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 15px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  transform: translateX(-50%) translateY(-10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--ico-border-subtle);
}

.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid rgba(10, 15, 26, 0.98);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--ico-text-secondary);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  color: var(--ico-text-primary);
  background: rgba(93, 120, 255, 0.1);
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ico-text-primary);
  transition: var(--transition-fast);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
}

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

.btn-primary:hover {
  box-shadow: var(--ico-shadow-lg);
  transform: translateY(-3px);
  color: white;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--ico-text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--ico-text-primary);
  border-color: var(--ico-border-subtle);
}

.btn-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a2e;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), 0 5px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
  color: #1a1a2e;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--ico-bg-panel);
  border: 1px solid var(--ico-border-subtle);
  border-radius: 12px;
  padding: 25px;
  transition: var(--transition-normal);
}

.card:hover {
  border-color: var(--ico-primary);
  box-shadow: var(--ico-shadow);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--ico-text-primary);
}

.card-text {
  color: var(--ico-text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.badge-outline {
  background: transparent;
  border: 1px solid var(--ico-primary);
  color: var(--ico-primary);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  color: var(--ico-text-secondary);
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--ico-bg-panel);
  border: 1px solid var(--ico-border-subtle);
  border-radius: 8px;
  color: var(--ico-text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--ico-primary);
  box-shadow: 0 0 0 3px rgba(93, 120, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ico-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   NEON ICONS
   ============================================ */
.neon-icon {
  width: 32px;
  height: 32px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px currentColor);
}

.neon-icon-sm {
  width: 24px;
  height: 24px;
}

.neon-icon-lg {
  width: 48px;
  height: 48px;
}

.neon-icon-xl {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 12px currentColor);
}

/* Neon Cyan Icons */
.neon-cyan {
  filter: brightness(0) saturate(100%) invert(70%) sepia(98%) saturate(1000%) hue-rotate(150deg) brightness(103%) contrast(104%) drop-shadow(0 0 8px rgba(0, 217, 255, 0.8)) drop-shadow(0 0 15px rgba(0, 217, 255, 0.5));
}

/* Cyan highlighted date */
.date-cyan {
  color: var(--ico-accent);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.8), 0 0 20px rgba(0, 217, 255, 0.5);
  font-weight: 600;
}

.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(93, 120, 255, 0.1);
  border: 1px solid var(--ico-border-subtle);
  border-radius: 12px;
  flex-shrink: 0;
}

.icon-box .neon-icon {
  width: 28px;
  height: 28px;
}

.icon-box-sm {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(93, 120, 255, 0.1);
  border: 1px solid var(--ico-border-subtle);
  border-radius: 10px;
  flex-shrink: 0;
}

.icon-box-sm .neon-icon {
  width: 24px;
  height: 24px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--ico-primary); }
.text-muted { color: var(--ico-text-muted); }
.text-secondary { color: var(--ico-text-secondary); }

.text-cyan-glow {
  color: var(--ico-accent);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.4), 0 0 16px rgba(0, 217, 255, 0.2);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 8, 16, 0.98);
    padding: 20px;
    border-bottom: 1px solid var(--ico-border-subtle);
    gap: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Mobile Dropdown */
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
  }

  .nav-dropdown-menu::before,
  .nav-dropdown-menu::after {
    display: none;
  }

  .nav-dropdown.active .nav-dropdown-menu {
    max-height: 300px;
    padding: 10px 0;
  }

  .nav-dropdown-menu a {
    padding: 8px 15px;
    padding-left: 25px;
    font-size: 0.85rem;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
  }

  .btn {
    padding: 12px 24px;
  }

  .btn-lg {
    padding: 14px 28px;
  }
}
