/* ========================================
   FunArena - Indian Style Gaming Platform
   Color Palette: Saffron, Gold, Deep Blue, Festive Red
   ======================================== */

:root {
    --saffron: #FF9933;        /* Indian saffron */
    --gold: #D4AF37;            /* Royal gold */
    --gold-light: #FFD700;
    --deep-blue: #0D1B3e;       /* Deep navy background */
    --dark-bg: #0A0E1A;
    --card-bg: #141B2D;
    --festive-red: #E63946;
    --green: #138808;           /* Indian green */
    --text-light: #F5F5F5;
    --text-dim: #A0A0B0;
    --gradient-gold: linear-gradient(135deg, #FFD700, #D4AF37, #B8860B);
    --gradient-saffron: linear-gradient(135deg, #FF9933, #FF6B00);
    --gradient-festive: linear-gradient(135deg, #FF9933, #FFFFFF, #138808);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Poppins', 'Noto Sans', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar .logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
}

.navbar nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.navbar nav a {
    color: var(--text-dim);
    font-size: 15px;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--gold-light);
}

.navbar .btn-download {
    background: var(--gradient-saffron);
    padding: 10px 24px;
    border-radius: 30px;
    color: white !important;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.navbar .btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.6);
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    background: radial-gradient(ellipse at center top, rgba(255, 153, 51, 0.15), transparent 60%),
                radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.08), transparent 60%),
                var(--dark-bg);
    position: relative;
    overflow: hidden;
}

/* Diya (oil lamp) decorations */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.hero::before {
    background: var(--saffron);
    top: 10%;
    left: -100px;
    animation: float-glow 6s ease-in-out infinite;
}

.hero::after {
    background: var(--gold);
    bottom: 10%;
    right: -100px;
    animation: float-glow 8s ease-in-out infinite reverse;
}

@keyframes float-glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    color: var(--gold-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 .gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .saffron-text {
    background: var(--gradient-saffron);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--gradient-saffron);
    padding: 16px 40px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold);
    padding: 14px 38px;
    border-radius: 40px;
    color: var(--gold-light);
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* Stats bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .num {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold-light);
}

.hero-stat .label {
    font-size: 13px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Section Title ── */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
}

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

.section-title p {
    color: var(--text-dim);
    font-size: 16px;
}

/* ── Games Grid ── */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.game-card .game-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    position: relative;
}

.game-card .game-image .pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 1px, transparent 20px);
}

.game-card .game-icon {
    max-width: 82%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
}

.game-card .game-body {
    padding: 24px;
}

.game-card .game-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.game-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Game-specific colors */
.game-rummy { --gc: #FF9933; }
.game-rummy .game-tag { background: rgba(255, 153, 51, 0.15); color: #FF9933; }
.game-rummy .game-image { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #FF9933; }

.game-teenpatti { --gc: #E63946; }
.game-teenpatti .game-tag { background: rgba(230, 57, 70, 0.15); color: #E63946; }
.game-teenpatti .game-image { background: linear-gradient(135deg, #1a0a0a, #2d1010); color: #E63946; }

.game-domino { --gc: #138808; }
.game-domino .game-tag { background: rgba(19, 136, 8, 0.15); color: #138808; }
.game-domino .game-image { background: linear-gradient(135deg, #0a1a0a, #102810); color: #138808; }

.game-callbreak { --gc: #D4AF37; }
.game-callbreak .game-tag { background: rgba(212, 175, 55, 0.15); color: #D4AF37; }
.game-callbreak .game-image { background: linear-gradient(135deg, #1a1a0a, #2d2d10); color: #D4AF37; }

.game-ludo { --gc: #4A90D9; }
.game-ludo .game-tag { background: rgba(74, 144, 217, 0.15); color: #4A90D9; }
.game-ludo .game-image { background: linear-gradient(135deg, #0a0a2e, #10103e); color: #4A90D9; }

/* ── Features Section ── */
.features-bg {
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06), transparent 70%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-4px);
}

.feature-card .icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: rgba(255, 153, 51, 0.1);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ── How It Works ── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step .step-num {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--gradient-saffron);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.step h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ── Rewards Section ── */
.rewards-bg {
    background: linear-gradient(180deg, transparent, rgba(255, 153, 51, 0.04), transparent);
}

.reward-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.reward-card {
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
}

.reward-card .coin-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.reward-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.reward-card p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ── Entertainment Only Disclaimer Band (index.html) ── */
.legal-disclaimer-band {
    padding: 28px 20px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.disclaimer-inner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-left: 4px solid var(--saffron);
    border-radius: 12px;
    padding: 20px 24px;
}

.disclaimer-icon {
    font-size: 26px;
    line-height: 1.5;
    flex-shrink: 0;
}

.disclaimer-inner p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin: 0;
}

.disclaimer-inner p strong {
    color: var(--gold-light);
}

/* ── Footer ── */
.footer {
    background: var(--deep-blue);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 48px 20px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.footer-brand .logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gold-light);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
    font-size: 13px;
    color: var(--text-dim);
}

/* ── Responsive ── */

/* Tablet (<=1024px) */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .hero h1 { font-size: 52px; }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
    .navbar { padding: 12px 16px; }
    .navbar nav a:not(.btn-download) { display: none; }
    .navbar .logo { font-size: 20px; }
    .navbar .logo-icon { width: 32px; height: 32px; }

    .hero { padding: 80px 16px 48px; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 15px; }
    .hero .badge { font-size: 12px; padding: 6px 16px; }
    .hero .cta-group { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; margin: 0 auto; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; padding: 14px 24px; font-size: 16px; }
    .hero-stats { gap: 20px; }
    .hero-stat .num { font-size: 22px; }
    .hero-stat .label { font-size: 11px; }

    .section { padding: 56px 16px; }
    .section-title h2 { font-size: 28px; }
    .section-title p { font-size: 14px; }

    .games-grid { grid-template-columns: 1fr; }
    .game-card .game-image { height: 160px; font-size: 56px; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-card { padding: 24px 20px; }

    .steps { grid-template-columns: 1fr; gap: 24px; }
    .step .step-num { width: 48px; height: 48px; font-size: 20px; }

    .reward-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .reward-card { padding: 20px 12px; }
    .reward-card .coin-icon { font-size: 32px; }
    .reward-card h3 { font-size: 16px; }
    .reward-card p { font-size: 12px; }

    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    .footer { padding: 32px 16px 20px; }
    .footer-bottom { font-size: 12px; }
}

/* Small Mobile (<=480px) */
@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .section-title h2 { font-size: 22px; }
    .hero-stats { gap: 12px; }
    .hero-stat .num { font-size: 18px; }
    .reward-cards { grid-template-columns: 1fr; }
    .share-card { padding: 28px 20px; }
    .share-card h1 { font-size: 22px; }
    .share-card .referral-code { font-size: 24px; }
}

/* ── Share Page Specific ── */
.share-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    background: radial-gradient(ellipse at center top, rgba(255, 153, 51, 0.15), transparent 60%),
                var(--dark-bg);
}

.share-card {
    max-width: 500px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.share-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-festive);
}

.share-card .gift-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.share-card h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.share-card h1 .gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.share-card .subtitle {
    font-size: 15px;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.share-card .referral-box {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.share-card .referral-code {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.share-card .referral-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-card .reward-info {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
}

.share-card .reward-info .item .num {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-light);
}

.share-card .reward-info .item .label {
    font-size: 12px;
    color: var(--text-dim);
}

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.2s;
    cursor: pointer;
}

.share-btn:hover { transform: scale(1.1); }

.share-btn.whatsapp { background: #25D366; color: white; }
.share-btn.telegram { background: #0088cc; color: white; }
.share-btn.facebook { background: #1877F2; color: white; }
.share-btn.twitter { background: #1DA1F2; color: white; }
.share-btn.copy { background: var(--gradient-saffron); color: white; }
