/* ===== COMPONENTS ===== */

/* HEADER & NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(91,99,255,0.15);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.75rem;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(91,99,255,0.1), rgba(107,114,255,0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background: rgba(91,99,255,0.08);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  border: none;
  background: none;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* Font size toggle */
.font-size-control {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1rem;
}

.font-size-btn {
  background: rgba(91,99,255,0.1);
  border: 1px solid rgba(91,99,255,0.2);
  color: var(--primary);
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.font-size-btn:hover,
.font-size-btn.active {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

/* BUTTONS */
.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(91,99,255,0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(91,99,255,0.45);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  border: 1.5px solid rgba(91,99,255,0.3);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(91,99,255,0.2);
  transform: translateY(-2px);
}

/* CARDS */
.card-glass {
  border: 1px solid rgba(91,99,255,0.2);
  border-radius: 20px;
  background: rgba(255,255,255,0.65);
  box-shadow: 0 8px 32px rgba(26,32,44,0.1);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(91,99,255,0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card-glass:hover {
  border-color: rgba(91,99,255,0.4);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 12px 40px rgba(91,99,255,0.15), 0 0 20px rgba(91,99,255,0.1);
  transform: translateY(-8px);
}

.card-glass:hover::before {
  opacity: 1;
}

.card-glass h2,
.card-glass h3 {
  color: #1e293b;
  margin-bottom: 0.6rem;
}

.card-glass p, 
.card-glass ul {
  color: var(--text-muted);
  margin: 0;
  font-size: var(--font-size-base);
}

.card-glass ul {
  padding-left: 1rem;
}

.card-glass li {
  margin-bottom: 0.4rem;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #111827 50%, #0a1523 100%);
  color: #cbd5e1;
  padding: 2rem 0;
  border-top: 1px solid rgba(91,99,255,0.2);
  backdrop-filter: blur(10px);
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: #dbeafe;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--primary);
}

.socials a {
  margin-left: 0.75rem;
  display: inline-block;
}

/* Dark mode components */
@media (prefers-color-scheme: dark) {
  .site-header { 
    background: rgba(14, 23, 34, 0.65); 
    border-color: rgba(91,99,255,0.2);
  }
  
  .card-glass { 
    background: rgba(20, 31, 48, 0.65); 
    border-color: rgba(91,99,255,0.25);
  }
  
  .card-glass h2,
  .card-glass h3 {
    color: #e2e8f0;
  }
  
  .card-glass:hover {
    background: rgba(20, 31, 48, 0.80);
    box-shadow: 0 12px 40px rgba(91,99,255,0.2), 0 0 20px rgba(91,99,255,0.12);
  }
  
  .site-footer { 
    background: linear-gradient(135deg, #020a13 0%, #0a1420 50%, #050d1a 100%); 
    color: #94a3b8;
    border-color: rgba(91,99,255,0.2);
  }
  
  .font-size-btn {
    background: rgba(91,99,255,0.15);
    border-color: rgba(91,99,255,0.25);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner { 
    flex-wrap: wrap; 
  }
  
  nav { 
    display: none; 
    width: 100%; 
    flex-direction: column; 
  }
  
  .menu-toggle { 
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  body.nav-open nav { 
    display: flex; 
  }
  
  .font-size-control {
    width: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  .footer-inner { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  
  .site-footer { 
    text-align: left; 
  }
}
