/* 
=========================================
Peluang88 Global Stylesheet (The Balanced Urban)
=========================================
*/

/* --- CSS Variables --- */
:root {
    /* Color Palette */
    --bg-color: #121212;
    --bg-alt: #1e1e1e;
    --fg-color: #f3f4f6;
    --fg-muted: #9ca3af;
    --primary: #f59e0b;
    /* Deep Amber/Gold */
    --primary-hover: #d97706;
    --border-color: #333333;

    /* Typography */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --radius: 8px;
    --transition: all 0.2s ease-in-out;
}

/* --- Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--fg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* --- Inline Text Links Decoration --- */
p a:not(.btn),
li a:not(.btn) {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(245, 158, 11, 0.4);
    text-underline-offset: 4px;
    font-weight: 600;
}

p a:not(.btn):hover,
li a:not(.btn):hover {
    color: var(--primary-hover);
    text-decoration-color: var(--primary-hover);
}

/* --- Layout --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--fg-color);
}

.section-desc {
    color: var(--fg-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.target-section {
    padding: 5rem 0;
}

/* --- FAQ Section --- */
.how-to-section {
    padding: 5rem 0;
}

.faq-list {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
}

.faq-card {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    transition: var(--transition);
}

.faq-card:hover {
    border-color: var(--fg-muted);
}

.faq-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--fg-color);
    margin-bottom: 0.75rem;
}

.faq-card p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.block-alt {
    padding: 5rem 0;
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.highlight {
    color: var(--primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #000;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--fg-color);
}

.btn-outline:hover {
    border-color: var(--fg-muted);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 0.8rem 1.8rem;
    font-size: 1.05rem;
}

/* --- Navbar Navigation --- */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* --- Hamburger Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--fg-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}


.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--fg-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 8rem 0;
    background-image: linear-gradient(to bottom, rgba(18, 18, 18, 0.55), rgba(18, 18, 18, 1)), url('assets/hero-desktop.webp');
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.hero .badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--fg-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Guides Grid --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step-card {
    background-color: var(--bg-color);
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--fg-muted);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

/* --- CS Section Background --- */
.cs-section {
    position: relative;
    background-image: url('assets/cs_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.cs-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.85);
    z-index: 1;
}

/* --- Games Section Background --- */
.games-section {
    position: relative;
    background-image: url('assets/games_bg_desktop.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.games-section .section-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.games-section .section-desc {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.games-section h3 {
    color: var(--primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.games-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.85);
    z-index: 1;
}

/* --- FAQ List --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background-color: var(--bg-alt);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.faq-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-card p {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

/* --- Floating Ads (PC Only) --- */
.floating-ads {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.float-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    padding: 10px 5px;
    text-align: center;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

.float-ad:hover {
    transform: translateX(-5px);
}

.ad-telegram {
    background-color: #03a9f4;
    color: white;
    width: 70px;
    padding: 10px;
    border: 1px solid #03a9f4;
    animation: telegramFloat 2s ease-in-out infinite;
}

@keyframes telegramFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.ad-telegram .icon {
    font-size: 28px;
    margin-bottom: 5px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

.ad-telegram .small-text {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ad-telegram .big-text {
    font-size: 15px;
    font-weight: 900;
    color: #ffeb3b;
    line-height: 1.1;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ad-telegram .badge {
    background-color: #9c27b0;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 6px;
    border-radius: 12px;
    border: 1px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    line-height: 1;
    animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(156, 39, 176, 0.5);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(156, 39, 176, 1);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(156, 39, 176, 0.5);
    }
}

.ad-links {
    background-color: white;
    color: #1976d2;
    width: 40px;
    border: 1px solid #1976d2;
    border-right: none;
    padding: 0 0 10px 0;
    overflow: hidden;
}

.ad-links .icon {
    background-color: #1976d2;
    color: white;
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 0;
    margin-bottom: 8px;
    font-size: 16px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.ad-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 12px;
}

.ad-partner {
    background-color: #111;
    color: #ffc107;
    width: 40px;
    border: 1px solid #ffc107;
    border-right: none;
}

.ad-partner .stars {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 10px;
    margin-top: 5px;
    letter-spacing: 2px;
}

/* --- Payment Methods --- */
.payment-methods {
    width: 100%;
    background-color: var(--bg-alt);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.payment-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--fg-muted);
    font-family: inherit;
    user-select: none;
}

.payment-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* --- Promo Grid (Alternating Image/Text Rows) --- */
.promo-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.promo-row-reverse {
    flex-direction: row-reverse;
}

.promo-img {
    flex: 0 0 45%;
    max-width: 45%;
}

.promo-img img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: block;
}

.promo-text {
    flex: 1;
}

.promo-text h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.promo-text p {
    color: var(--fg-muted);
    line-height: 1.7;
    text-align: justify;
}

@media (max-width: 768px) {

    .promo-row,
    .promo-row-reverse {
        flex-direction: column;
        text-align: center;
    }

    .promo-img {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .promo-text p {
        text-align: left;
    }
}

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3,
.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--fg-color);
}

.footer-brand p {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--fg-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--fg-muted);
    font-size: 0.85rem;
}

/* --- Games Gallery Grid --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s;
    text-align: center;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.game-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid var(--border-color);
}

.game-card-info {
    padding: 1rem;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fg-color);
    margin-bottom: 0.25rem;
}

.game-card-provider {
    font-size: 0.85rem;
    color: var(--fg-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-alt);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }


    .hero h1 {
        font-size: 2.5rem;
    }

    .hero {
        background-image: linear-gradient(to bottom, rgba(18, 18, 18, 0.55), rgba(18, 18, 18, 1)), url('assets/hero-mobile.webp');
    }

    .games-section {
        background-image: url('assets/games_bg_mobile.webp');
        background-attachment: scroll;
    }

    .floating-ads {
        display: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .game-card-info {
        padding: 0.5rem;
    }

    .game-card-title {
        font-size: 0.75rem;
        margin-bottom: 0.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game-card-provider {
        font-size: 0.65rem;
    }
}

/* --- Money Rain Animation --- */
.money-rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.money-drop {
    position: absolute;
    top: -100px;
    animation-name: fallAndSway;
    animation-timing-function: linear;
    animation-iteration-count: 1;
    opacity: 0.85;
    /* slight transparency so it blends */
}

@keyframes fallAndSway {
    0% {
        transform: translateY(-100px) rotate(0deg) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translateY(50vh) rotate(15deg) translateX(20px);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(-15deg) translateX(-20px);
        opacity: 0;
    }
}