/* assets/css/components.css */

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(10, 10, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: padding var(--transition), background-color var(--transition);
  padding: 1.25rem 0;
}

.site-header.shrunk {
  padding: 0.75rem 0;
  background-color: rgba(5, 5, 10, 0.95);
  border-bottom: 1px solid var(--color-border-strong);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  fill: var(--color-accent);
}

.nav-desktop {
  display: none;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

/* Mobile Nav Toggle */
.hamburger-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  padding: 0;
  z-index: 1002;
}

.hamburger-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: left center;
}

.hamburger-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
}

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

.hamburger-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-overlay.active {
  transform: translateX(0);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.mobile-nav-links a {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-links a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.mobile-nav-secondary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.mobile-nav-secondary a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .hamburger-toggle {
    display: none;
  }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
  }
  .nav-link:hover, .nav-link:focus-visible {
    color: var(--color-text-primary);
  }
  .nav-link.active {
    color: var(--color-accent);
  }
  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 2px;
  }
  .header-actions {
    display: flex;
  }
}


/* FOOTER */
.site-footer {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(4, 1fr);
  }
}

.footer-col-brand {
  grid-column: span 1;
}

@media (min-width: 480px) {
  .footer-col-brand {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .footer-col-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--color-accent);
}

.footer-col-brand p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-disclaimer-text {
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--color-text-muted);
  transition: var(--transition);
}

.footer-links a:hover, .footer-links a:focus-visible {
  color: var(--color-accent);
}

.footer-links.social-text li {
  margin-bottom: 0.5rem;
}

.footer-links.social-text a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-info-details {
  list-style: none;
  font-size: 0.85rem;
}

.footer-info-details li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-compliance-stripes {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
}

.footer-strip-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1rem;
}

.footer-strip-text:last-of-type {
  margin-bottom: 0;
}

.footer-bottom-bar {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-payments {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-payments svg, .footer-payments img {
  height: 24px;
  opacity: 0.5;
  transition: opacity var(--transition);
}

.payment-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  padding: 2px 6px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.05);
  display: inline-block;
  line-height: 1.2;
}

.footer-payments svg:hover, .footer-payments img:hover {
  opacity: 0.9;
}

.footer-bottom-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}


/* MODALS (GENERAL & AUTH) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 460px;
  position: relative;
  padding: 2.5rem 2rem;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover, .modal-close-btn:focus-visible {
  color: #fff;
  background-color: var(--color-bg-elevated);
  outline: none;
}

.modal-container h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.modal-container h2::after {
  display: none;
}

.modal-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.modal-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.link-btn {
  background: none;
  border: none;
  color: var(--color-accent);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover, .link-btn:focus-visible {
  color: var(--color-accent-light);
  outline: none;
}

.link-small {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: underline;
}

.link-small:hover {
  color: var(--color-accent);
}


/* AGE GATE */
#age-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 1;
  transition: opacity 0.4s ease;
}

#age-gate.hidden {
  opacity: 0;
  pointer-events: none;
}

.age-gate-inner {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  max-width: 520px;
  width: 100%;
  padding: 3rem 2.5rem;
  text-align: center;
}

.age-gate-logo {
  margin-bottom: 1.5rem;
}

.age-gate-logo svg {
  width: 60px;
  height: 60px;
  fill: var(--color-accent);
}

.age-gate-inner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0;
  text-align: center;
}

.age-gate-inner h2::after {
  display: none;
}

.age-gate-inner p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.age-gate-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 480px) {
  .age-gate-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
}

.age-gate-legal {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.age-gate-legal a {
  text-decoration: underline;
}


/* COOKIE CONSENT BANNER */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border-strong);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
  z-index: 1500;
  padding: 1.5rem 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.active {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .cookie-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
  }
}

.cookie-inner p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-align: center;
}

@media (min-width: 1024px) {
  .cookie-inner p {
    text-align: left;
  }
}

.cookie-inner p strong {
  color: #fff;
}

.cookie-inner p a {
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Cookie Preferences Modal Toggles */
.cookie-preference-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cookie-preference-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cookie-preference-info {
  max-width: 75%;
}

.cookie-preference-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cookie-preference-info p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Toggle Switch Style */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: .4s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-text-muted);
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-accent-glow);
  border-color: var(--color-accent);
}

input:checked + .slider::before {
  transform: translateX(20px);
  background-color: var(--color-accent);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}


.footer-strip-text a {
  text-decoration: underline;
}
