/* =============================================
   FriendPlay.pro — Main Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #7c3aed;
  --primary-d: #5b21b6;
  --accent:    #f59e0b;
  --accent-d:  #d97706;
  --dark:      #0f0f1a;
  --dark2:     #1a1a2e;
  --dark3:     #16213e;
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --white:     #ffffff;
  --success:   #10b981;
  --danger:    #ef4444;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-d); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Utility --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-d); color: var(--white); }

.btn-accent { background: var(--accent); color: #1a1a2e; }
.btn-accent:hover { background: var(--accent-d); color: #1a1a2e; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.section { padding: 80px 0; }
.section-alt { background: var(--dark2); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark2);
  border-top: 2px solid var(--primary);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9000;
  flex-wrap: wrap;
}
#cookie-banner p { font-size: .9rem; color: var(--text-muted); flex: 1; min-width: 200px; }
#cookie-banner p a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-banner.hidden { display: none; }

/* --- Age Gate Modal --- */
#age-gate {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
}
.age-gate-box {
  background: var(--dark2);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow);
}
.age-gate-box .age-icon { font-size: 4rem; margin-bottom: 16px; }
.age-gate-box h2 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; color: var(--white); }
.age-gate-box p { color: var(--text-muted); margin-bottom: 28px; }
.age-gate-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* --- Header / Navbar --- */
#header {
  position: sticky; top: 0;
  background: rgba(15,15,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,58,237,.3);
  z-index: 500;
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800;
  color: var(--white);
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
  font-size: .95rem;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(124,58,237,.2);
  color: var(--accent);
}
.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--dark2);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform .3s;
    border-bottom: 2px solid var(--primary);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { display: block; width: 100%; padding: 12px 16px; }
  .nav-cta { margin-left: 0; width: 100%; text-align: center; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.35);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,158,11,.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: .85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Games Grid --- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.game-card {
  background: var(--dark2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(124,58,237,.25);
  transition: transform .25s, box-shadow .25s;
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(124,58,237,.3); }
.game-card-img { position: relative; height: 200px; overflow: hidden; }
.game-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.game-card:hover .game-card-img img { transform: scale(1.06); }
.game-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.game-card-body { padding: 20px; }
.game-card-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.game-card-body p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--dark3);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(124,58,237,.2);
  transition: border-color .2s;
}
.feature-card:hover { border-color: var(--primary); }
.feature-icon { font-size: 2.4rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--white); }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* --- Venues --- */
.venues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.venue-card {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(124,58,237,.2);
}
.venue-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.venue-card .venue-city {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 10px;
}
.venue-card p { color: var(--text-muted); font-size: .88rem; line-height: 1.5; }
.venue-card .venue-detail { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
.venue-card .venue-detail span:first-child { font-size: 1rem; flex-shrink: 0; }

/* --- Newsletter / CTA Section --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-d), var(--dark3));
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
}
.newsletter-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.newsletter-section p { color: rgba(255,255,255,.7); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; max-width: 500px; margin: 0 auto; }
.newsletter-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 13px 20px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }
.form-success {
  display: none;
  background: rgba(16,185,129,.15);
  border: 1px solid var(--success);
  color: var(--success);
  padding: 12px 20px;
  border-radius: 8px;
  margin-top: 16px;
  font-weight: 600;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.contact-detail .icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-detail strong { display: block; color: var(--white); font-size: .95rem; }
.contact-detail span { color: var(--text-muted); font-size: .9rem; }
.contact-img { border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.contact-img img { width: 100%; height: 220px; object-fit: cover; }

.contact-form-box {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid rgba(124,58,237,.25);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark3);
  border: 1.5px solid rgba(124,58,237,.3);
  border-radius: 8px;
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--dark2); }

/* --- About Page --- */
.about-hero {
  background: var(--dark2);
  padding: 80px 0 60px;
  text-align: center;
}
.about-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.about-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 360px; object-fit: cover; }
.about-text h2 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 14px; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(124,58,237,.2);
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 14px;
}
.team-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.team-card p { color: var(--text-muted); font-size: .85rem; }

/* --- Games Page --- */
.games-page-hero {
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
  padding: 80px 0 60px;
  text-align: center;
}
.games-page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.games-page-hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* --- Game Container --- */
.game-container {
  background: var(--dark2);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid rgba(124,58,237,.3);
  margin-bottom: 40px;
}
.game-container h2 { font-size: 1.5rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.game-container .game-desc { color: var(--text-muted); margin-bottom: 28px; font-size: .95rem; }

/* Spin Wheel */
.wheel-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.wheel-canvas-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid var(--accent);
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.6));
  z-index: 10;
}
#wheelCanvas {
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(124,58,237,.5);
}
.wheel-result {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  min-height: 32px;
  text-align: center;
}
.wheel-controls { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Slot Machine */
.slot-machine {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.slot-reels {
  display: flex;
  gap: 12px;
  background: #0f0f1a;
  padding: 20px;
  border-radius: var(--radius);
  border: 3px solid var(--primary);
  box-shadow: 0 0 30px rgba(124,58,237,.4);
}
.slot-reel {
  width: 90px;
  height: 90px;
  background: var(--dark3);
  border-radius: 10px;
  border: 2px solid rgba(124,58,237,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}
.slot-reel.spinning {
  animation: reelSpin .12s linear infinite;
}
@keyframes reelSpin {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-8px); }
  75%  { transform: translateY(8px); }
  100% { transform: translateY(0); }
}
.slot-result {
  font-size: 1.15rem;
  font-weight: 700;
  min-height: 30px;
  text-align: center;
}
.slot-result.win { color: var(--success); }
.slot-result.lose { color: var(--text-muted); }

/* Tokens Game */
.tokens-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.tokens-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: var(--dark3);
  padding: 20px;
  border-radius: var(--radius);
  border: 2px solid rgba(124,58,237,.3);
}
.token-cell {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--dark2);
  border: 2px solid rgba(124,58,237,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
  user-select: none;
}
.token-cell:hover { transform: scale(1.1); box-shadow: 0 0 14px rgba(245,158,11,.5); }
.token-cell.revealed {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--accent);
  animation: tokenReveal .3s ease;
}
@keyframes tokenReveal {
  0%   { transform: scale(0.8) rotateY(90deg); }
  100% { transform: scale(1) rotateY(0deg); }
}
.tokens-stats {
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: center;
}
.token-stat {
  background: var(--dark3);
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  border: 1px solid rgba(124,58,237,.2);
}
.token-stat .stat-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.token-stat .stat-lbl { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }

/* --- Footer --- */
footer {
  background: #08080f;
  border-top: 1px solid rgba(124,58,237,.2);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; line-height: 1.7; }
.footer-brand .disclaimer {
  font-size: .78rem;
  color: rgba(148,163,184,.6);
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 8px;
  line-height: 1.5;
}
.footer-col h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(124,58,237,.15);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--text-muted); font-size: .85rem; }
.footer-bottom .age-badge {
  background: var(--danger);
  color: var(--white);
  font-weight: 800;
  font-size: .85rem;
  padding: 4px 12px;
  border-radius: 50px;
}

/* --- Policy Pages --- */
.policy-hero {
  background: var(--dark2);
  padding: 60px 0 40px;
  text-align: center;
}
.policy-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--white); margin-bottom: 10px; }
.policy-hero p { color: var(--text-muted); }
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 20px;
}
.policy-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--white); margin: 32px 0 10px; }
.policy-content h3 { font-size: 1.05rem; font-weight: 700; color: var(--accent); margin: 20px 0 8px; }
.policy-content p { color: var(--text-muted); margin-bottom: 12px; font-size: .95rem; line-height: 1.75; }
.policy-content ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 12px; }
.policy-content ul li { margin-bottom: 6px; font-size: .95rem; line-height: 1.7; }
.policy-content a { color: var(--accent); }
.policy-updated {
  display: inline-block;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  color: var(--primary);
  font-size: .85rem;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 32px;
}

/* --- Responsive tweaks --- */
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { min-height: 80vh; }
  .newsletter-section { padding: 40px 24px; }
  .game-container { padding: 24px 16px; }
  .contact-form-box { padding: 24px 16px; }
  .slot-reel { width: 72px; height: 72px; font-size: 2.4rem; }
  .token-cell { width: 50px; height: 50px; font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .slot-reel { width: 60px; height: 60px; font-size: 2rem; }
  .tokens-board { grid-template-columns: repeat(4, 1fr); }
  .token-cell { width: 56px; height: 56px; }
}
