/**
 * Kalonica Nicx - CSS Components & Modules
 */

/* ==========================================================================
   1. NAVBAR & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--silver-border);
  transition: var(--trans-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1360px;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 28px;
  transition: opacity var(--trans-fast);
}

.brand-logo:hover {
  opacity: 0.9;
}

.brand-logo-icon {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  transition: transform var(--trans-fast);
}

.brand-logo:hover .brand-logo-icon {
  transform: scale(1.04);
}

.brand-logo-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-ivory-warm);
  white-space: nowrap;
  text-transform: uppercase;
  transition: color var(--trans-fast);
}

.brand-logo:hover .brand-logo-text {
  color: var(--silver-bright);
}

.nav-menu-desktop {
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

@media (min-width: 1024px) {
  .nav-menu-desktop {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .nav-menu-desktop {
    gap: 20px;
  }
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-ivory-muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: var(--trans-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-ivory-warm);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--silver-accent);
  box-shadow: 0 0 8px var(--silver-glow);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--silver-border);
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-btn {
  color: var(--text-ivory-dim);
  padding: 2px 6px;
  border-radius: 12px;
  transition: var(--trans-fast);
}

.lang-btn:hover {
  color: var(--text-ivory-warm);
}

.lang-btn.active {
  color: var(--bg-navy-dark);
  background: var(--silver-accent);
}

.lang-separator {
  color: var(--silver-border);
}

/* Mobile Controls Container (Hamburger + Mobile Lang) */
.nav-mobile-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (min-width: 1024px) {
  .nav-mobile-controls {
    display: none !important;
  }
}

/* Mobile Hamburger Toggle */
.nav-toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
}

@media (min-width: 1024px) {
  .nav-toggle-btn {
    display: none !important;
  }
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text-ivory-warm);
  border-radius: 2px;
  transition: var(--trans-fast);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 76px;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: calc(100vh - 76px);
  background: rgba(14, 26, 43, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: var(--trans-smooth);
  z-index: 999;
  overflow-y: auto;
  border-left: 1px solid var(--silver-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.mobile-drawer.open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .mobile-drawer {
    display: none !important;
  }
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-ivory-warm);
  padding: 10px 0;
  border-bottom: 1px solid var(--silver-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--silver-bright);
}

/* ==========================================================================
   2. BUTTONS & CTAS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--trans-smooth);
  text-align: center;
  min-height: 48px; /* Thumb Ergonomics */
}

.btn-primary {
  background: var(--silver-accent);
  color: var(--bg-navy-dark);
  box-shadow: 0 4px 16px rgba(192, 192, 192, 0.2);
}

.btn-primary:hover {
  background: var(--silver-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.3);
  color: var(--bg-navy-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-ivory-warm);
  border-color: var(--silver-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--silver-accent);
  color: var(--silver-bright);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--silver-accent);
  border-color: var(--silver-accent);
}

.btn-outline:hover {
  background: var(--silver-accent);
  color: var(--bg-navy-dark);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   3. CARDS & SURFACES
   ========================================================================== */
/* Frosted Navy Card (Standard Dark Mode) */
.card-navy {
  background: var(--bg-navy-card);
  border: 1px solid var(--silver-border);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--trans-smooth);
  position: relative;
  overflow: hidden;
}

.card-navy:hover {
  border-color: var(--silver-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* Tactile Warm Ivory Paper Card (Special Editorial & Book Theme) */
.card-paper {
  background: var(--paper-bg);
  color: var(--paper-text-dark);
  border: 1px solid var(--paper-border);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-paper);
  position: relative;
}

.card-paper h2, .card-paper h3, .card-paper h4 {
  color: var(--paper-text-dark);
}

.card-paper p {
  color: var(--paper-text-muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge-silver {
  background: rgba(192, 192, 192, 0.15);
  color: var(--silver-bright);
  border: 1px solid var(--silver-border);
}

.badge-gold {
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-promo {
  background: rgba(56, 161, 105, 0.2);
  color: #68D391;
  border: 1px solid rgba(56, 161, 105, 0.4);
}

/* ==========================================================================
   4. INK-STROKE DIVIDER
   ========================================================================== */
.ink-divider {
  width: 100%;
  max-width: 240px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--silver-accent) 50%, transparent 100%);
  margin: var(--space-xl) auto;
  opacity: 0.6;
}

/* ==========================================================================
   5. LITE YOUTUBE FACADE (ULTRA-FAST VIDEO EMBED)
   ========================================================================== */
.lite-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  background-position: center center;
  background-size: cover;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--silver-border);
  box-shadow: var(--shadow-elevated);
}

.lite-youtube::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 26, 43, 0.25);
  transition: var(--trans-fast);
}

.lite-youtube:hover::before {
  background: rgba(14, 26, 43, 0.1);
}

.lite-youtube-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(14, 26, 43, 0.85);
  border: 2px solid var(--silver-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans-smooth);
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.3);
}

.lite-youtube:hover .lite-youtube-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--silver-bright);
}

.lite-youtube-play svg {
  width: 24px;
  height: 24px;
  fill: var(--text-ivory-warm);
  margin-left: 3px;
  transition: var(--trans-fast);
}

.lite-youtube:hover .lite-youtube-play svg {
  fill: var(--bg-navy-dark);
}

.lite-youtube iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   6. CHECKOUT MODAL & BACKDROP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: var(--bg-navy-card);
  border: 1px solid var(--silver-border);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-lg);
  box-shadow: var(--shadow-elevated);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-ivory-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-ivory-warm);
}

/* Payment Tabs */
.payment-tabs {
  display: flex;
  gap: 8px;
  margin: var(--space-md) 0;
  border-bottom: 1px solid var(--silver-border);
  padding-bottom: 8px;
}

.payment-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--silver-border);
  border-radius: 8px;
  padding: 10px;
  color: var(--text-ivory-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans-fast);
}

.payment-tab-btn.active {
  background: var(--silver-accent);
  color: var(--bg-navy-dark);
}

.payment-panel {
  display: none;
  padding: var(--space-md) 0;
}

.payment-panel.active {
  display: block;
}

/* Copy Account Box */
.copy-account-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-navy-surface);
  border: 1px dashed var(--silver-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: var(--space-md) 0;
}

.account-digits {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--silver-bright);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background: #09121E;
  border-top: 1px solid var(--silver-border);
  padding: var(--space-2xl) 0 var(--space-lg) 0;
  margin-top: auto;
  color: var(--text-ivory-dim);
  font-size: var(--fs-sm);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

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

.footer-brand h3 {
  color: var(--text-ivory-warm);
  margin-bottom: var(--space-xs);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.footer-links-list a:hover {
  color: var(--silver-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

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