/* global.css - Consolidated styles for all pages */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#smooth-wrapper {
  overflow: hidden;
}

#smooth-content {
  overflow: visible;
}

body {
  background: #000;
  color: #fff;
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* ============================================
   RED SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #000;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: #b41616;
  border-radius: 6px;
  border: 2px solid #000;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #d11a1a;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #b41616 #000;
}

/* ============================================
   BLUEPRINT BACKGROUND
   ============================================ */
#blueprint-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: #000;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.3s ease;
}

.nav-left:hover {
  opacity: 0.8;
}

.nav-logo {
  height: 35px;
  width: 35px;
  object-fit: contain;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-item,
.nav-donate {
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-donate {
  background: #b41616;
  font-weight: 600;
}

.nav-donate:hover {
  background: #d11a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 22, 22, 0.3);
}

.nav-toggle {
  display: none;
  width: 28px;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  width: 100%;
  border-radius: 3px;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
}

.btn.red {
  background: #b41616;
}

.btn.red:hover {
  background: #d11a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(180, 22, 22, 0.4);
}

.btn.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn.outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #b41616;
  color: #b41616;
}

/* ============================================
   FOOTER - DEAD SIMPLE
   ============================================ */
.footer {
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.footer-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #b41616;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(180, 22, 22, 0.4);
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  color: #b41616;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom-link:hover {
  color: #b41616;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.modal-content p {
  color: #aaa;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   MOBILE - DEAD SIMPLE FOOTER
   ============================================ */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 63px;
    right: 0;
    height: calc(100vh - 63px);
    width: 280px;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 999;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
  }

  .nav-item,
  .nav-donate {
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* FOOTER - DEAD SIMPLE ON MOBILE */
  .footer {
    padding: 2rem 1.5rem 1.5rem;
  }
  
  .footer-container {
    display: block; /* SIMPLE BLOCK LAYOUT */
  }

  .footer-brand {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .footer-column {
    margin-bottom: 2rem;
  }

  .footer-column-title {
    margin-bottom: 0.75rem;
  }

  .footer-links {
    gap: 0.5rem;
  }

  .footer-link {
    display: block;
    padding: 0.5rem 0;
    /* NO HOVER TRANSFORMS ON MOBILE */
  }
  
 .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  color: #666;
  font-size: 0.875rem;
}

@media (min-width: 769px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
  .footer-bottom p {
    margin-bottom: 1rem;
  }
  
  .footer-bottom-links {
    display: block;
  }

  .footer-bottom-link {
    display: block;
    padding: 0.5rem 0;
  }

  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-buttons {
    flex-direction: column;
  }

  .modal-buttons .btn {
    width: 100%;
  }
}

/* ============================================
   TABLET
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #b41616;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}