/* Base & Variables */
:root {
    --bg-main: #f4f7f9;
    --bg-white: #ffffff;
    --primary-blue: #00a8ff;
    --light-blue: #e0f4ff;
    --text-dark: #333333;
    --text-muted: #666666;
    --accent-orange: #ff7f50;
    --accent-yellow: #f1c40f;
    --accent-green: #2ecc71;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: 70px;
    /* Space for sticky footer */
}

/* Utilities */
.text-blue {
    color: var(--primary-blue);
}

.text-orange {
    color: var(--accent-orange);
}

.text-yellow {
    color: var(--accent-yellow);
}

.rounded-img {
    border-radius: var(--border-radius);
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

/* Header */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.marquee-container {
    flex-grow: 1;
    margin: 0 30px;
    display: flex;
    align-items: center;
    background: var(--light-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.marquee-container i {
    margin-right: 10px;
}

.auth-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue) !important;
    margin-right: 10px;
}

.btn-register {
    background-color: var(--primary-blue);
    color: white;
}

.btn-login:hover {
    background-color: var(--light-blue);
}

.btn-register:hover {
    background-color: #0097e6;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Hero Banner */
.hero-banner img {
    width: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
}

/* Game Sections */
.game-section {
    margin: 30px 0;
}

.section-header {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 5px;
}

.section-header h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.game-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-title {
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-play {
    width: 80%;
    margin: 10px auto;
    padding: 5px;
    background: var(--light-blue);
    color: var(--primary-blue);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Promos Layout */
.promo-split {
    display: flex;
    gap: 20px;
}

.promo-left {
    flex: 1;
}

.promo-right {
    flex: 1;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.large-promo-card {
    position: relative;
    margin-bottom: 15px;
}

.large-promo-card img {
    width: 100%;
    border-radius: var(--border-radius);
    display: block;
}

.btn-green {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--accent-green);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/* Article/SEO Section */
.article-section {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-top: 40px;
    text-align: center;
}

.article-banner img {
    max-width: 100%;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
}

.article-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
}

.article-content h2,
.article-content h3 {
    color: var(--text-dark);
    margin: 20px 0 10px 0;
}

.article-content ul,
.article-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.inline-banners img {
    max-width: 100%;
    margin: 15px auto;
    display: block;
}

/* Footer */
.footer {
    background-color: var(--light-blue);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #cceeff;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    margin: 0 10px;
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sticky Bottom Ad */
.sticky-bottom-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.sticky-bottom-banner img {
    height: 60px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .marquee-container {
        display: none;
    }

    .grid-4,
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-split {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}