@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --bg-color: #0b1121;
    --card-bg: #111827;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-green: #10b981;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --nav-bg: #1e293b;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: 80px; /* Leave space for bottom nav */
}

/* Typography */
a { text-decoration: none; color: inherit; }

/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 100%);
    padding: 10px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: bold;
}
.top-banner .btn-join {
    background: #fff;
    color: #1e1b4b;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 800;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
}

/* Section Titles */
.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0 20px;
    font-size: 18px;
    font-weight: 800;
}

/* Site List */
.site-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Site Card */
.site-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 15px; /* Added gap for better spacing */
}

.site-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.site-logo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.sponsor-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #06b6d4, #10b981);
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    animation: pulseBadge 2s infinite;
    white-space: nowrap;
}

@keyframes pulseBadge {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); box-shadow: 0 0 15px rgba(6, 182, 212, 0.8); }
    100% { transform: translateX(-50%) scale(1); }
}

.site-logo {
    width: 120px;
    height: 60px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--accent-cyan);
    text-align: center;
    flex-shrink: 0;
    overflow: hidden;
}

.site-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.site-bonus {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.site-bonus strong {
    display: block;
    font-size: 22px;
    color: #fff;
    margin-bottom: 5px;
}
.site-bonus strong span {
    color: var(--accent-green);
}

.site-bonus span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Base Button Style */
.btn-bonus {
    display: inline-block;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    border: none;
    flex-shrink: 0;
}

/* Button Variants */

/* Variant 1: Pulse Glow (Kayan Işık/Nefes Alma) */
.btn-var-1 {
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    animation: pulseGlow 2s infinite;
    transform: translateZ(0);
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(6, 182, 212, 0.5); transform: scale(1); }
    50% { box-shadow: 0 0 20px rgba(6, 182, 212, 1); transform: scale(1.02); }
    100% { box-shadow: 0 0 5px rgba(6, 182, 212, 0.5); transform: scale(1); }
}

/* Variant 2: Shine Effect (Parlayan Işık) */
.btn-var-2 {
    background: #10b981;
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Safari fix for overflow hidden border radius */
}
.btn-var-2::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50px;
    height: 200%;
    background: rgba(255,255,255,0.4);
    transform: rotate(25deg);
    animation: shineEffect 3s infinite;
    pointer-events: none;
}
@keyframes shineEffect {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Variant 3: Bounce (Zıplama) */
.btn-var-3 {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    animation: bounceBtn 2s infinite;
    transform-origin: center bottom;
    display: inline-block;
}
@keyframes bounceBtn {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Variant 4: Gradient Shift (Renk Geçişi) */
.btn-var-4 {
    background: linear-gradient(270deg, #8b5cf6, #ec4899, #06b6d4, #8b5cf6);
    background-size: 300% 300%;
    animation: gradientShift 3s ease infinite;
    transform: translateZ(0);
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 11px;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 20px;
}

.nav-item.active, .nav-item:hover {
    color: var(--accent-green);
}

/* Modals / Pages */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 15px;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    text-align: center;
}

.btn-close {
    position: absolute;
    top: 10px; right: 10px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px; height: 30px;
    cursor: pointer;
    font-weight: bold;
}

/* Spin Wheel */
.wheel-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 20px auto;
    border-radius: 50%;
    border: 5px solid #0f172a;
    overflow: hidden;
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-center-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: var(--accent-green);
    border-radius: 50%;
    border: none;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.wheel-indicator {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid var(--accent-green);
    z-index: 20;
}

.btn-spin-action {
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
}

/* Chests */
.chest-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.chest-item {
    background: #0f172a;
    border: 2px solid #334155;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.chest-item:hover {
    border-color: var(--accent-green);
    transform: scale(1.05);
}

.chest-item i {
    font-size: 40px;
    color: var(--accent-cyan);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Top Logo Slider */
.top-slider {
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-left: 30px;
    animation: scroll 20s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-content a {
    display: block;
    width: 100px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border-radius: 6px;
    padding: 5px;
}

.marquee-content a img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

/* Nav Animations */
.nav-pulse {
    animation: navPulseGlow 2s infinite;
    border-radius: 10px;
    padding: 5px 10px;
    transform: translateZ(0);
}
@keyframes navPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.nav-bounce {
    animation: navBounce 2s infinite;
    transform-origin: center bottom;
    transform: translateZ(0);
}
@keyframes navBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateZ(0); }
    40% { transform: translateY(-5px) translateZ(0); }
    60% { transform: translateY(-3px) translateZ(0); }
}

.nav-glow {
    position: relative;
    transform: translateZ(0);
}
.nav-glow::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(6,182,212,0.5) 0%, rgba(6,182,212,0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: navGlowRotate 3s infinite linear;
}
@keyframes navGlowRotate {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5;}
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1;}
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5;}
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .site-card {
        flex-direction: column;
        text-align: center;
        gap: 15px; /* slightly increased gap for badge */
        padding: 20px 10px 15px 10px; /* added top padding to avoid badge cutoff */
    }
    .site-logo-wrapper {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }
    .site-logo {
        width: 100%;
        max-width: 180px;
        height: 70px;
        margin: 0 auto;
    }
    .site-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    .site-action {
        width: 100%;
    }
    .btn-bonus {
        width: 100%;
        display: block;
        padding: 12px;
        font-size: 16px;
    }
    .marquee-content a {
        width: 120px;
        height: 50px;
    }
    .marquee-content a img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}
