/* ============================================
   FEVICON.IN — DESIGN SYSTEM
   Light Navy Academic Theme
   ============================================ */

:root {
  /* Backgrounds */
  --bg-base:    #f0f4f8;
  --bg-surface: #e8eef5;
  --bg-card:    #ffffff;
  --bg-raised:  #f7f9fc;
  --bg-input:   #f7f9fc;

  /* Navy tints */
  --navy-50:  #f0f4f8;
  --navy-100: #e8eef5;
  --navy-200: #d1dded;
  --navy-300: #a8c0d6;
  --navy-400: #6e95b5;
  --navy-500: #3d6b8f;
  --navy-600: #2a5070;
  --navy-700: #1e3a52;
  --navy-800: #142840;
  --navy-900: #0c1c2e;

  /* Accent — Blue */
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent-light:  #3b82f6;
  --accent-dim:    rgba(37,99,235,0.08);
  --accent-border: rgba(37,99,235,0.2);

  /* Borders */
  --border:   #d1dded;
  --border-2: #a8c0d6;
  --border-3: #6e95b5;

  /* Text */
  --text-primary:   #0f2133;
  --text-secondary: #3d5a73;
  --text-muted:     #6e8fa8;
  --text-dim:       #a8c0d6;

  /* Status */
  --green:  #059669;
  --red:    #dc2626;
  --yellow: #d97706;

  /* Mode Colors */
  --mode-academic:     #2563eb;
  --mode-professional: #7c3aed;
  --mode-casual:       #059669;
  --mode-friendly:     #ea580c;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,33,51,0.08);
  --shadow-md: 0 4px 16px rgba(15,33,51,0.1);
  --shadow-lg: 0 8px 32px rgba(15,33,51,0.12);

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle paper texture */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
  opacity: 0.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
p { line-height: 1.7; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(240,244,248,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 700; color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; padding: 8px 14px; border-radius: var(--r-sm);
  transition: all 0.2s;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-surface); }
.nav-link.active { color: var(--accent); }
.nav-btn {
  background: var(--accent); color: #fff; border: none;
  font-size: 13px; font-weight: 600; padding: 9px 20px;
  border-radius: var(--r-sm); cursor: pointer;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.nav-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 500;
  transition: all 0.2s; text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 12px 28px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,99,235,0.25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.btn-primary:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }

.btn-secondary {
  background: #fff; color: var(--text-secondary);
  border: 1px solid var(--border-2);
  padding: 12px 28px; border-radius: var(--r-sm); font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--border-3); color: var(--text-primary); background: var(--bg-raised); }

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--r-sm); font-size: 12px;
}
.btn-ghost:hover { border-color: var(--border-2); color: var(--text-secondary); background: var(--bg-surface); }
.btn-ghost.success { color: var(--green); border-color: rgba(5,150,105,0.3); background: rgba(5,150,105,0.05); }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px;
  color: var(--text-secondary); margin-bottom: 6px; font-weight: 500;
}
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-primary);
  font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; transition: all 0.2s;
  box-shadow: inset 0 1px 3px rgba(15,33,51,0.04);
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-input::placeholder { color: var(--text-dim); }

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.badge-accent { background: var(--accent-dim); border: 1px solid var(--accent-border); color: var(--accent); }
.badge-green  { background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.2); color: var(--green); }
.badge-purple { background: rgba(124,58,237,0.08); border: 1px solid rgba(124,58,237,0.2); color: #7c3aed; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 12px 16px; border-radius: var(--r-sm);
  font-size: 13px; display: none;
}
.alert.show { display: block; }
.alert-error   { background: rgba(220,38,38,0.06); border: 1px solid rgba(220,38,38,0.2); color: var(--red); }
.alert-success { background: rgba(5,150,105,0.06); border: 1px solid rgba(5,150,105,0.2); color: var(--green); }

/* ============================================
   SHIMMER LOADING
   ============================================ */
.shimmer {
  height: 13px; border-radius: 4px; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--bg-surface) 25%, var(--navy-200) 50%, var(--bg-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================
   PULSE DOT
   ============================================ */
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  position: relative; z-index: 1;
  background: var(--bg-surface);
}
.footer-logo { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* NAV — hamburger shown only on mobile */
.nav-hamburger { display: none; }

@media (max-width: 768px) {

  /* NAV */
  .nav {
    padding: 0 16px;
    height: 56px;
  }
  .nav-links { display: none; }          /* hide desktop links */
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer; padding: 8px;
    flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block; width: 18px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: all 0.3s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* MOBILE MENU DRAWER */
  .mobile-menu {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    z-index: 999;
    padding: 20px 16px;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    display: block;
    padding: 14px 16px;
    font-size: 16px; font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
  }
  .mobile-menu a:hover {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-primary);
  }
  .mobile-menu .mobile-cta {
    margin-top: 8px;
    background: var(--accent); color: #fff;
    text-align: center; font-weight: 600;
    border: none;
  }
  .mobile-menu .mobile-cta:hover { background: var(--accent-hover); color: #fff; }

  /* FOOTER */
  .footer {
    padding: 24px 16px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }
}
