/* ============================================
   WILD ROBIN CASINO — layout.css
   Header, Nav, Sections, Footer layout
   ============================================ */

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 0, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wr-border);
  transition: background var(--trans-mid), box-shadow var(--trans-mid);
}

.site-header.scrolled {
  background: rgba(5, 0, 15, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo img,
.site-logo svg {
  height: 44px;
  width: auto;
}

/* Desktop Nav */
.nav-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: color var(--trans-fast), background var(--trans-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--wr-gold);
  transform: translateX(-50%);
  transition: width var(--trans-mid);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--wr-gold);
  background: rgba(255, 215, 0, 0.06);
}

.nav-links a:hover::after { width: 60%; }
.nav-links a.active { color: var(--wr-gold); }
.nav-links a.active::after { width: 60%; }

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* Mobile hamburger */
.btn-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  background: transparent;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--trans-fast);
}

.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wr-gold);
  border-radius: 2px;
  transition: transform var(--trans-mid), opacity var(--trans-mid);
  transform-origin: center;
}

.btn-hamburger:hover { background: rgba(255,215,0,0.1); }

.btn-hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.btn-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: var(--header-h-mob);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(5, 0, 15, 0.98);
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform var(--trans-slow);
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-lg);
  overflow-y: auto;
}

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

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--wr-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all var(--trans-mid);
}

.mobile-nav-links a:hover {
  color: var(--wr-gold);
  background: rgba(255,215,0,0.08);
  border-color: var(--wr-border);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--wr-border);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-pill);
  transition: all var(--trans-mid);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn:hover::before { width: 300px; height: 300px; }

.btn-sm  { font-size: 0.75rem; padding: 8px 18px; }
.btn-md  { font-size: 0.8rem;  padding: 10px 22px; }
.btn-lg  { font-size: 0.95rem; padding: 14px 32px; }
.btn-xl  { font-size: 1.05rem; padding: 16px 40px; }
.btn-full { width: 100%; }

/* Login button */
.btn-login {
  background: transparent;
  color: var(--wr-gold);
  border: 1.5px solid var(--wr-gold-dark);
}
.btn-login:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--wr-gold);
  color: var(--wr-gold-light);
  box-shadow: var(--shadow-gold);
}

/* Register button */
.btn-register {
  background: var(--grad-red);
  color: var(--wr-gold);
  border: 1.5px solid var(--wr-red);
}
.btn-register:hover {
  background: linear-gradient(135deg, #FF1444, #C0002A);
  box-shadow: var(--shadow-red);
  transform: translateY(-1px);
  color: var(--wr-gold-light);
}

/* Gold CTA button */
.btn-gold {
  background: var(--grad-gold);
  color: #1A0030;
  border: none;
}
.btn-gold:hover {
  background: linear-gradient(135deg, #FFF0A0, #FFD700, #FFF0A0);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* Red play button */
.btn-play {
  background: var(--grad-red);
  color: var(--wr-gold);
  border: 1px solid rgba(255,215,0,0.3);
}
.btn-play:hover {
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
  border-color: var(--wr-gold);
  color: var(--wr-gold-light);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--wr-text);
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
  background: rgba(255,255,255,0.05);
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.site-main {
  padding-top: var(--header-h);
}

/* ============================================
   SECTION DEFAULTS
   ============================================ */

.section {
  padding: var(--space-3xl) 0;
}

.section-sm { padding: var(--space-2xl) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--wr-red-light);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--wr-text);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-title span {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1rem;
  color: var(--wr-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Gold divider */
.divider-gold {
  width: 80px;
  height: 2px;
  background: var(--grad-gold);
  margin: var(--space-md) auto;
  border-radius: 2px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(180deg, var(--wr-bg-deep) 0%, #020008 100%);
  border-top: 1px solid var(--wr-border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand {}

.footer-logo {
  margin-bottom: var(--space-md);
}

.footer-logo img,
.footer-logo svg {
  height: 40px;
  width: auto;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--wr-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--wr-border);
  color: var(--wr-text-muted);
  font-size: 1.1rem;
  transition: all var(--trans-mid);
  text-decoration: none;
}

.social-btn:hover {
  background: rgba(255,215,0,0.1);
  border-color: var(--wr-border-bright);
  color: var(--wr-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wr-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--wr-text-muted);
  transition: color var(--trans-fast), padding-left var(--trans-fast);
}

.footer-links a:hover {
  color: var(--wr-gold);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--wr-border);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-legal {
  font-size: 0.8rem;
  color: rgba(168,153,187,0.6);
  max-width: 700px;
  line-height: 1.5;
}

.footer-copyright {
  font-size: 0.8rem;
  color: rgba(168,153,187,0.5);
}

.footer-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--wr-red);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--wr-red-light);
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE — LAYOUT
   ============================================ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: var(--header-h-mob);
  }

  .nav-main { display: none; }
  .header-actions .btn-login,
  .header-actions .btn-register { display: none; }
  .btn-hamburger { display: flex; }

  .section { padding: var(--space-2xl) 0; }
  .section-sm { padding: var(--space-xl) 0; }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal { max-width: 100%; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
}
