/* ==========================================================================
   RYVO PUBLIC SITE — CENTRALIZED SHELL & COMPONENT STYLES
   Provides unified layout, premium TR/EN segmented switch, header, and canonical footer.
   ========================================================================== */

:root {
  --bg-dark: #0B0E14;
  --bg-card: #131722;
  --bg-surface: #171C28;
  --purple-primary: #7C3AED;
  --purple-accent: #9333EA;
  --gold-primary: #D4AF37;
  --gold-accent: #F59E0B;
  --text-white: #FFFFFF;
  --text-gray: #94A3B8;
  --text-muted: #64748B;
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Page Flex Shell Layout */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrapper, main {
  flex: 1 0 auto;
}

/* Header Geometric Centering Grid (1fr auto 1fr) */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 24px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand-logo-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-white);
}

.nav-right-group {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Premium Segmented TR/EN Language Switcher Component */
.lang-switcher, .language-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 26, 34, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.lang-btn, .language-option {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-gray);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.lang-btn:hover, .language-option:hover {
  color: var(--text-white);
}

.lang-btn:focus-visible, .language-option:focus-visible {
  outline: 2px solid var(--gold-primary);
}

.lang-btn.active, .language-option.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-accent));
  color: #0B0E14;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.35);
}

.btn-download {
  background: linear-gradient(135deg, var(--purple-accent), var(--purple-primary));
  color: var(--text-white);
  padding: 10px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
  border-color: var(--gold-primary);
}

/* ==========================================================================
   CANONICAL UNIFIED 3-COLUMN FOOTER SYSTEM
   ========================================================================== */
footer {
  position: relative;
  flex-shrink: 0;
  background: #07090C;
  border-top: 1px solid var(--glass-border);
  padding: 48px 24px 32px;
  margin-top: auto;
  overflow: hidden;
}

.footer-top-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 80%);
  pointer-events: none;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-brand .brand-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.footer-text {
  color: var(--text-gray);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-title, .footer-column-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-white);
  margin-bottom: 4px;
}

.footer-nav-col a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-nav-col a:hover {
  color: var(--text-white);
}

/* Store Downloads Area in Footer */
.footer-store-area {
  display: flex;
  flex-direction: column;
}

.store-downloads {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.2s ease;
  text-decoration: none;
}

.store-badge img {
  height: 42px;
  width: auto;
  object-fit: contain;
  display: block;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.social-icons-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(22, 26, 34, 0.8);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
}

.social-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
}

.footer-bottom, .footer-bottom-bar {
  max-width: 1100px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-gray);
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--text-white);
}

/* Toast Component */
.store-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--purple-accent), var(--purple-primary));
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
  opacity: 0;
  z-index: 9999;
  pointer-events: none;
}

.store-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive Shell Breakpoints */
@media (max-width: 768px) {
  .nav-container {
    grid-template-columns: auto 1fr;
  }
  .nav-links {
    display: none;
  }
  .footer-bottom, .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
  .footer-legal-links {
    justify-content: center;
  }
}
