/* Modern site-wide styles - site-modern.css
   Lightweight design system: CSS variables, typography, forms, buttons,
   auth card, and footer improvements. Load after legacy CSS to override.
*/
:root {
  --brand-1: #0ea5e9;
  --brand-2: #06b6d4;
  --accent: #ffb020;
  /* Footer-specific tokens */
  --footer-bg: linear-gradient(135deg, #081018 0%, #07121a 100%);
  --footer-contrast: #0b1116;
  --footer-text: #e6eef8;
  --footer-muted: #9ca3af;
  --footer-accent: #ffc107;
  --bg: #0b1116;
  --card-bg: #0d161b;
  --muted: #9ca3af;
  --surface: #0d1114;
  --white: #ffffff;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-lg: 0 12px 40px rgba(2, 6, 23, 0.6);
  --max-content-width: 1180px;
  --text-color: #e6eef8;
}
/* Typography */
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: var(--text-color);
  background: linear-gradient(180deg, #071018 0%, #0b1116 100%);
}
h1,
h2,
h3,
h4 {
  color: var(--white);
  font-weight: 700;
}
p,
small {
  color: var(--muted);
}
.container {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 16px;
}
/* Buttons */
.btn-primary,
.btn-login,
.btn-register {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  border: none;
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}
.btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.btn-primary:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}
/* Auth card */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}
.auth-card {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.auth-card .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.auth-card .brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.auth-card h2 {
  margin: 0 0 8px 0;
}
.form-control {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 10px 12px;
  border-radius: 8px;
}
.form-control::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.08);
  border-color: var(--brand-1);
}
.auth-help {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.auth-actions {
  margin-top: 14px;
}
/* Footer improvements */
.footer {
  background: linear-gradient(135deg, #061018 0%, #07121a 100%);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.footer .fw-bold {
  color: var(--accent);
}
.footer a {
  color: var(--text-color);
  opacity: 0.9;
}
.footer small,
.footer .text-muted {
  color: var(--muted);
}
.footer .social-icon-btn {
  border-color: rgba(255, 255, 255, 0.04);
}
/* Enhanced responsive footer layout */
.site-footer {
  padding: 48px 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  position: relative;
  z-index: 9999;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  align-items: start;
}
.site-footer h6 {
  color: var(--footer-accent);
  margin-bottom: 12px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li {
  margin-bottom: 10px;
}
.site-footer a {
  color: var(--text-color);
  opacity: 0.95;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--brand-1);
  text-decoration: underline;
}

/* Accessibility: visible focus outlines for keyboard users */
.site-footer a:focus,
.site-footer button:focus,
.site-footer .social-icon-btn:focus,
.site-footer input:focus {
  outline: 3px solid rgba(255, 193, 7, 0.18);
  outline-offset: 2px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Footer column headings: clearer separation and consistent spacing */
.site-footer .footer-col {
  padding: 6px 0;
}
.site-footer .footer-col h6 {
  font-size: 1rem;
  letter-spacing: 0.3px;
}

/* Make social icons accessible and crisp */
.site-footer .social-icon-btn img {
  display: block;
  width: 20px;
  height: 20px;
}
.site-footer .social-icon-btn {
  width: 42px;
  height: 42px;
}

/* Newsletter: subtle success state */
.site-footer .newsletter-feedback.success {
  color: #8bd18b;
}
.site-footer .newsletter-feedback.error {
  color: #ff7675;
}

/* Ensure footer bottom stacks nicely and links are reachable */
.site-footer .footer-bottom {
  align-items: center;
  gap: 12px;
}
.site-footer .footer-bottom a {
  color: var(--footer-text);
  opacity: 0.85;
}

/* Mobile: collapse footer sections into accordions for small screens */
@media (max-width: 767px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 700;
  }
  .footer-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
    padding-left: 0;
  }
  .footer-section.open .footer-section-content {
    max-height: 600px;
    padding-top: 8px;
  }
}

/* Tablet: two columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .site-footer .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large/TV screens: wide layout with more spacing and a mega row */
@media (min-width: 1200px) {
  .site-footer {
    padding: 64px 0;
  }
  .site-footer .footer-grid {
    grid-template-columns: 240px 1fr 240px 240px;
    gap: 36px;
  }
  .site-footer .container {
    max-width: 1400px;
  }
}

/* Bottom bar */
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 18px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer .footer-bottom .legal {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Small helper for social icons in footer */
.site-footer .social-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
/* Newsletter form inside footer */
.site-footer .newsletter-form .input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.site-footer .newsletter-form .form-control {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-color);
}
.site-footer .newsletter-form .btn-warning {
  padding: 10px 14px;
  border-radius: 8px;
}
.site-footer .newsletter-feedback {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Improve footer-bottom stacking on small screens */
.site-footer .footer-bottom {
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-bottom .legal {
  flex: 1 1 60%;
}
.site-footer .footer-bottom .d-flex {
  flex: 1 1 40%;
  justify-content: flex-end;
}
@media (max-width: 767px) {
  .site-footer .footer-bottom .legal {
    order: 2;
    text-align: center;
    width: 100%;
  }
  .site-footer .footer-bottom .d-flex {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }
}
/* Responsive tweaks */
@media (max-width: 720px) {
  .auth-card {
    padding: 20px;
    border-radius: 10px;
  }
  .container {
    padding: 0 12px;
  }
}
/* Utility helpers */
.text-muted-weak {
  color: rgba(255, 255, 255, 0.45);
}
.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* End of site-modern.css */
