/* --- CORE VARIABLES --- */
:root {
    --winnita-blue-dark: #000a6e;
    --winnita-blue-light: #1a4bd6;
    --winnita-red: #ff4d4d;
    --winnita-green: #2ecc71; /* Optimized for CTR */
    --winnita-bg: #f5f7fa;
    --text-dark: #1a1a2e;
    --gold-gradient: linear-gradient(180deg, #ffd700 0%, #ffaa00 100%);
}

/* --- RESET & TYPOGRAPHY --- */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body { 
    font-family: 'Roboto', sans-serif; 
    background-color: var(--winnita-bg); 
    color: var(--text-dark);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- HEADER (STICKY FOR UX) --- */
.top-bar {
    background: #fff;
    padding: 10px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--winnita-blue-dark);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}
.logo span { color: var(--winnita-red); margin-right: 5px; font-size: 24px; }

.auth-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-reg {
    background: var(--winnita-green);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}
.btn-reg:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6); }

.btn-login {
    background: var(--winnita-red);
    color: white;
}

.social-login { display: flex; gap: 10px; color: #555; font-size: 18px; margin-left: 15px; align-items: center; }
.social-icon { cursor: pointer; opacity: 0.7; }
.social-icon:hover { opacity: 1; }

/* --- MAIN MENU --- */
.main-nav {
    background: var(--winnita-blue-dark);
    padding: 0 4%;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    white-space: nowrap;
}
.main-nav a {
    color: white;
    padding: 15px 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    border-bottom-color: var(--winnita-red);
    color: #fff;
}

/* --- HERO SECTION (FERRARI THEME) --- */
.hero {
    background: linear-gradient(135deg, #060e63 0%, #1e3c96 60%, #101c7a 100%);
    color: white;
    padding: 60px 4%;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Geometric background elements */
.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBmaWxsPSJub25lIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiPjxwYXRoIGQ9Ik0wIDEwMCBMMTAwIDAgTTEwMCAxMDAgTTAgMCIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.hero-content {
    width: 50%;
    z-index: 2;
}

.hero h1 {
    font-family: 'Teko', sans-serif;
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.bonus-amount {
    font-size: 80px;
    font-family: 'Teko', sans-serif;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: block;
    margin: 10px 0;
}

.hero-image {
    position: absolute;
    right: 0%;
    bottom: 0;
    width: 45%;
    height: 95%;
    background-image: url('winnita.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
    z-index: 1;
}

/* --- GAME CATEGORY PILLS --- */
.category-bar {
    background: white;
    padding: 20px 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: relative;
    z-index: 10;
}

.cat-list {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding-bottom: 5px; /* Hide scrollbar visual */
    align-items: center;
}

.cat-item {
    color: #555;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.cat-item.active { color: var(--winnita-blue-light); }
.cat-item:hover { color: var(--winnita-red); }

.search-bar {
    background: #f0f2f5;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    width: 300px;
    border: 1px solid #e1e1e1;
}
.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    margin-left: 10px;
    font-size: 14px;
}

/* --- GAME GRID --- */
.section-title {
    padding: 30px 4% 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-title h2 { font-size: 18px; color: #444; text-transform: uppercase; letter-spacing: 1px; }
.filter-btn { color: var(--winnita-blue-light); font-size: 14px; cursor: pointer; }

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 0 4% 40px;
}

.game-card {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s;
    cursor: pointer;
    aspect-ratio: 1/1; /* Square cards */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.game-card:hover { transform: scale(1.05); z-index: 5; }

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 20px 10px 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: 0.3s;
}
.game-card:hover .game-overlay { opacity: 1; }

/* --- SEO CONTENT BLOCK (ARTICLE) --- */
.seo-content {
    background: white;
    padding: 50px 4%;
    margin-top: 30px;
    border-top: 5px solid var(--winnita-blue-light);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #4a4a4a;
}

.content-container h2 { color: var(--winnita-blue-dark); margin-bottom: 20px; font-size: 28px; }
.content-container h3 { color: var(--winnita-red); margin: 25px 0 15px; font-size: 20px; }
.content-container p { margin-bottom: 15px; font-size: 16px; }

/* --- TABLES --- */
.content-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.content-container th, 
.content-container td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.content-container th {
    background-color: var(--winnita-blue-dark);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
}

.content-container tr:hover {
    background-color: #f8f9fa;
}

.content-container tr:last-child td {
    border-bottom: none;
}

/* --- FAQ SECTION (AI OVERVIEW OPTIMIZED) --- */
.faq-section {
    background: #f9f9f9;
    padding: 40px 0;
    margin-top: 30px;
    border-radius: 8px;
}
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.faq-question { font-weight: 700; color: var(--winnita-blue-dark); cursor: pointer; display: flex; justify-content: space-between; }
.faq-answer { margin-top: 10px; display: none; color: #666; font-size: 15px; }
.faq-item.active .faq-answer { display: block; }

/* --- FOOTER --- */
footer {
    background: #101010;
    color: #888;
    padding: 50px 4% 20px;
    font-size: 13px;
    text-align: center;
}
.footer-logos { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; filter: grayscale(100%); opacity: 0.5; }

/* Mobile Tweaks */
@media (max-width: 768px) {
    .hero-content { width: 100%; text-align: center; position: relative; z-index: 2; }
    .hero-image { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.3; background-position: center bottom; background-size: cover; }
    .top-bar { flex-direction: column; gap: 10px; }
    .search-bar { display: none; } /* Simplify mobile header */
    .logo { width: 100%; justify-content: center; }
    .auth-actions { width: 100%; justify-content: space-around; }
    .bonus-amount { font-size: 60px; }
    
    /* Responsive Tables */
    .content-container table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Floating Chat Button */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: var(--winnita-blue-light);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 2000;
    border: 2px solid var(--winnita-blue-light);
}