/* ============================================
   3 Patti Joy APK - Shared Styles
   ============================================ */

:root {
    --gold: #FFD700;
    --gold-dark: #D4A800;
    --gold-light: #FFF1A8;
    --crimson: #DC143C;
    --crimson-dark: #A10E2C;
    --deep-green: #0A5C36;
    --dark-bg: #0B0E17;
    --dark-card: #12162A;
    --dark-surface: #1A1F38;
    --dark-border: #2A2F4A;
    --white: #FFFFFF;
    --text-muted: #A0A8C8;
    --success: #22C55E;
    --blue-accent: #3B82F6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark-bg);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
.bg-pattern {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(circle at 20% 20%, rgba(220, 20, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(10, 92, 54, 0.05) 0%, transparent 60%);
}

.floating-cards {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 0;
    pointer-events: none; overflow: hidden;
}

.floating-cards span {
    position: absolute; font-size: 2rem; opacity: 0.06;
    animation: floatCard 20s infinite linear;
}

@keyframes floatCard {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* ===== CONTAINER ===== */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
    padding: 8px 0; text-align: center; font-size: 0.85rem;
    font-weight: 500; letter-spacing: 0.5px; animation: pulse-bar 3s infinite;
}
@keyframes pulse-bar { 0%,100%{opacity:1} 50%{opacity:.85} }
.top-bar span { color: var(--gold); font-weight: 700; }
.top-bar a { color: var(--gold-light); text-decoration: underline; font-weight: 700; }

/* ===== HEADER ===== */
header {
    background: rgba(18, 22, 42, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border); padding: 15px 0;
    position: sticky; top: 0; z-index: 100;
}

.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 900; color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.logo-text small { display: block; font-size: 0.65rem; font-weight: 400; color: var(--gold); letter-spacing: 2px; text-transform: uppercase; }

nav a {
    color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
    font-weight: 500; margin-left: 25px; transition: color 0.3s;
}
nav a:hover { color: var(--gold); }
nav .nav-download { color: var(--success) !important; font-weight: 700 !important; }

/* ===== HERO ===== */
.hero { padding: 60px 0 40px; text-align: center; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 8px 20px; border-radius: 50px; font-size: 0.85rem;
    color: var(--gold); font-weight: 600; margin-bottom: 12px;
    animation: fadeInDown 0.8s ease;
}

.android-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.3);
    padding: 6px 16px; border-radius: 50px; font-size: 0.8rem;
    color: var(--success); font-weight: 600; margin-bottom: 20px;
}

@keyframes fadeInDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.15;
    margin-bottom: 18px; letter-spacing: -1px; animation: fadeInUp 0.8s ease 0.2s both;
}
.hero h1 .gold { color: var(--gold); }
.hero h1 .red { color: var(--crimson); }

@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 30px; animation: fadeInUp 0.8s ease 0.4s both; }

/* ===== APP INFO CARD ===== */
.app-info-card {
    background: var(--dark-card); border: 1px solid var(--dark-border);
    border-radius: 20px; padding: 30px; margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.5s both;
}
.app-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; text-align: left; }
.app-icon {
    width: 80px; height: 80px;
    background: linear-gradient(135deg, var(--crimson), #FF4D6D);
    border-radius: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}
.app-meta h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.app-meta .rating { color: var(--gold); font-size: 0.9rem; margin-bottom: 4px; }
.app-meta .category { color: var(--text-muted); font-size: 0.85rem; }
.os-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(34,197,94,0.1); color: var(--success);
    padding: 3px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; margin-top: 4px;
}

/* ===== INFO GRID ===== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 25px; }
.info-item { background: var(--dark-surface); border-radius: 12px; padding: 14px; text-align: center; }
.info-item .label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.info-item .value { font-size: 1rem; font-weight: 700; color: var(--white); }

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; max-width: 420px; padding: 18px 40px;
    background: linear-gradient(135deg, var(--success), #16A34A);
    color: var(--white); text-decoration: none; font-size: 1.2rem; font-weight: 800;
    border-radius: 16px; border: none; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.35);
    letter-spacing: 0.5px; position: relative; overflow: hidden;
}
.download-btn::before {
    content: ''; position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: shimmer 2.5s infinite;
}
@keyframes shimmer { 0%{left:-100%} 100%{left:100%} }
.download-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(34, 197, 94, 0.45); }
.download-btn svg { width: 24px; height: 24px; }
.download-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* ===== SECTIONS ===== */
.section { padding: 50px 0; }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
.section-title .accent { color: var(--gold); }
.content-text { color: var(--text-muted); font-size: 1rem; line-height: 1.85; margin-bottom: 18px; }
.content-text strong { color: var(--white); font-weight: 600; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 25px; }
.feature-card {
    background: var(--dark-card); border: 1px solid var(--dark-border);
    border-radius: 16px; padding: 25px; transition: all 0.3s;
}
.feature-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(255, 215, 0, 0.08); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* ===== STEPS ===== */
.steps-list { margin-top: 25px; }
.step-item {
    display: flex; gap: 20px; margin-bottom: 20px; padding: 20px;
    background: var(--dark-card); border: 1px solid var(--dark-border);
    border-radius: 14px; transition: border-color 0.3s;
}
.step-item:hover { border-color: var(--crimson); }
.step-num {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--crimson), #FF4D6D);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.step-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.step-content p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== GAMES TABLE ===== */
.games-table {
    width: 100%; border-collapse: collapse; margin-top: 20px;
    background: var(--dark-card); border-radius: 16px; overflow: hidden;
    border: 1px solid var(--dark-border);
}
.games-table th {
    background: var(--dark-surface); padding: 14px 18px; text-align: left;
    font-size: 0.85rem; font-weight: 700; color: var(--gold);
    text-transform: uppercase; letter-spacing: 1px;
}
.games-table td { padding: 12px 18px; border-top: 1px solid var(--dark-border); font-size: 0.95rem; color: var(--text-muted); }
.games-table tr:hover td { background: rgba(255, 215, 0, 0.03); }

/* ===== PAYMENT ===== */
.payment-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 25px; }
.payment-card {
    background: var(--dark-card); border: 1px solid var(--dark-border);
    border-radius: 16px; padding: 30px 20px; text-align: center; transition: all 0.3s;
}
.payment-card:hover { border-color: var(--success); transform: translateY(-4px); }
.payment-logo { font-size: 2.5rem; margin-bottom: 12px; }
.payment-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.payment-card p { font-size: 0.85rem; color: var(--text-muted); }
.payment-card .min-withdraw {
    display: inline-block; margin-top: 10px; padding: 5px 14px;
    background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px; font-size: 0.8rem; color: var(--success); font-weight: 600;
}

/* ===== EARN SECTION ===== */
.earn-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(220, 20, 60, 0.06));
    border: 2px solid rgba(255, 215, 0, 0.2); border-radius: 24px;
    padding: 40px 30px; text-align: center; margin: 30px 0;
    position: relative; overflow: hidden;
}
.earn-section::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255,215,0,0.03), transparent, rgba(220,20,60,0.03), transparent);
    animation: rotateBg 15s linear infinite;
}
@keyframes rotateBg { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.earn-section > * { position: relative; z-index: 1; }
.earn-amount {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; color: var(--gold);
    margin: 10px 0; text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    font-family: 'Space Mono', monospace;
}
.earn-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; margin: 25px 0; }
.earn-step { padding: 15px; text-align: center; }
.earn-step .num {
    width: 35px; height: 35px; background: var(--gold); color: var(--dark-bg);
    border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; margin-bottom: 8px;
}
.earn-step h4 { font-size: 0.95rem; margin-bottom: 4px; }
.earn-step p { font-size: 0.8rem; color: var(--text-muted); }
.share-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark-bg); font-size: 1.1rem; font-weight: 800;
    border: none; border-radius: 14px; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.25);
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(255, 215, 0, 0.35); }
.ref-box {
    display: flex; align-items: center; gap: 10px; max-width: 500px;
    margin: 20px auto 0; background: var(--dark-surface);
    border: 1px solid var(--dark-border); border-radius: 12px; padding: 4px;
}
.ref-box input {
    flex: 1; background: transparent; border: none; color: var(--white);
    font-family: 'Space Mono', monospace; font-size: 0.85rem;
    padding: 12px 15px; outline: none;
}
.ref-box .copy-btn {
    padding: 10px 20px; background: var(--crimson); color: white;
    border: none; border-radius: 10px; font-weight: 700; font-size: 0.85rem;
    cursor: pointer; transition: background 0.3s; font-family: 'Outfit', sans-serif;
}
.ref-box .copy-btn:hover { background: var(--crimson-dark); }

/* ===== FAQ ===== */
.faq-list { margin-top: 25px; }
.faq-item {
    background: var(--dark-card); border: 1px solid var(--dark-border);
    border-radius: 14px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.3s;
}
.faq-item.active { border-color: var(--gold); }
.faq-question {
    width: 100%; padding: 18px 22px; background: none; border: none;
    color: var(--white); font-size: 1rem; font-weight: 600;
    font-family: 'Outfit', sans-serif; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; transition: color 0.3s;
}
.faq-question:hover { color: var(--gold); }
.faq-arrow { font-size: 1.2rem; transition: transform 0.3s; color: var(--gold); }
.faq-item.active .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s; }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 22px 18px; }
.faq-answer p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ===== PROS/CONS ===== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.pros, .cons { background: var(--dark-card); border-radius: 16px; padding: 22px; border: 1px solid var(--dark-border); }
.pros h3 { color: var(--success); margin-bottom: 12px; }
.cons h3 { color: var(--crimson); margin-bottom: 12px; }
.pros li, .cons li {
    list-style: none; padding: 6px 0; font-size: 0.9rem; color: var(--text-muted);
    padding-left: 22px; position: relative;
}
.pros li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cons li::before { content: '✗'; position: absolute; left: 0; color: var(--crimson); font-weight: 700; }

/* ===== CTA ===== */
.cta-banner {
    background: linear-gradient(135deg, var(--crimson-dark), var(--crimson), #FF4D6D);
    border-radius: 20px; padding: 40px 30px; text-align: center;
    margin: 40px 0; position: relative; overflow: hidden;
}
.cta-banner::after { content: '♠ ♥ ♦ ♣'; position: absolute; bottom: 10px; right: 20px; font-size: 3rem; opacity: 0.1; letter-spacing: 10px; }
.cta-banner h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { font-size: 1rem; opacity: 0.9; margin-bottom: 20px; }

/* ===== FOOTER ===== */
footer {
    background: var(--dark-card); border-top: 1px solid var(--dark-border);
    padding: 40px 0 25px; margin-top: 50px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 15px; }
.footer-col p, .footer-col a { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 8px; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--dark-border); font-size: 0.8rem; color: var(--text-muted); }
.disclaimer {
    background: rgba(255, 215, 0, 0.05); border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px; padding: 18px; margin-top: 20px;
    font-size: 0.8rem; color: var(--text-muted); line-height: 1.7;
}

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav { display: none; }
    .app-header { flex-direction: column; text-align: center; }
    .pros-cons { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .earn-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.4rem; }
    .hero h1 { font-size: 1.7rem; }
    .app-info-card { padding: 20px; }
    .earn-section { padding: 25px 15px; }
}
