@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Primary Brand & Background */
    --color-bg-base: #145544;
    /* Darkened version of #1E8067 (Approx 15% darker) */
    --color-brand-primary: #1E8067;
    /* The specific green provided */
    --color-primary: #1E8067;

    /* Secondary UI */
    --color-bg-card: #1E8067;
    /* Cards match the brand green, or slightly lighter */
    --color-bg-surface: #268f74;
    /* Slightly lighter for surface elevation */

    /* Accents */
    --color-accent-gold: #FFC800;
    /* Vibrant Yellow from Logo */
    --color-accent-gold-hover: #FFD700;

    /* CTA */
    --color-cta-primary: #1CFF9E;
    /* Keeping Neon Mint from previous request as it pairs well */
    --color-cta-hover: #00E585;

    /* Colors from User List */
    --color-whatsapp: #25D366;
    --color-dark-grey: #33373D;
    --color-grey: #5F5F5F;
    --color-almost-black: #030303;

    /* Text */
    --color-text-white: #FFFFFF;
    --color-text-offwhite: #FFFBFB;
    /* From user list */
    --color-text-muted: #e0e0e0;
    /* Lighter muted for green bg */

    /* Glass/Overlay - Tinted with Secondary Blue-Grey */
    --glass-bg: rgba(28, 36, 48, 0.7);
    /* Translucent version of card color */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-white);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    padding-bottom: 80px;
    /* Space for mobile nav */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--color-accent-gold);
}

.text-danger {
    color: var(--color-danger);
}

.text-muted {
    color: var(--color-text-muted);
}

.bg-danger {
    background-color: var(--color-danger) !important;
    color: white;
}

.font-bold {
    font-weight: 700;
}

.font-heading {
    font-family: var(--font-heading);
}

.hidden {
    display: none;
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    /* Reduced padding from 10px 20px */
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    /* Reduced font size from 14px */
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Primary CTA - Gold/Yellow */
.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-gold) 0%, #b8962e 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--color-accent-gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text-white);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-accent-gold);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-text-white);
}

/* Game Card Enhancements */
.game-card {
    position: relative;
    background-color: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1/1;
    /* Square cards */
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(28, 255, 158, 0.15);
    /* Neon mint glow */
    border-color: var(--color-cta-primary);
}

.game-card::after {
    content: 'PLAY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--color-cta-primary);
    color: black;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 3;
}

/* Logo Sizing Fix */
.logo img {
    height: 35px;
    /* Smaller, cleaner size for desktop */
    width: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .logo img {
        height: 28px;
        /* Even smaller for mobile */
    }
}

.game-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition-fast);
}

.game-card:hover img {
    opacity: 0.4;
    /* Darken image on hover to make text pop */
    transform: scale(1.1);
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    z-index: 2;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
}

/* Sticky Bottom Nav (Mobile) */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-bg-base);
    /* Dark Green */
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none;
    }
}

/* Live Match Card Styling */
.live-match-card {
    display: inline-block;
    width: 280px;
    background: #0F5E4A;
    /* Explicit Dark Green as requested */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-right: 15px;
    vertical-align: top;
    color: var(--color-text-white);
    /* Ensure text is white */
}

.live-match-card .text-muted,
.live-match-card span[style*="color: #a3a3a3"],
.live-match-card span[style*="color: #aaa"],
.live-match-card div[style*="color: #ddd"] {
    color: rgba(255, 255, 255, 0.8) !important;
    /* Override grey with off-white */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--color-text-muted);
    gap: 4px;
}

.nav-item.active {
    color: var(--color-accent-gold);
}

.nav-item i {
    font-size: 20px;
}

/* Header */
header {
    background-color: var(--color-bg-base);
    /* Use the new dark green base */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    height: 60px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--color-text-white);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--color-accent-gold);
}

/* Desktop Nav */
.desktop-nav {
    display: none;
}

@media (min-width: 900px) {
    .desktop-nav {
        display: block;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #05261d;
        border: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-radius: var(--radius-sm);
        list-style: none;
        padding: 10px 0;
        min-width: 180px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition-fast);
        z-index: 100;
    }

    .dropdown-trigger:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li a {
        display: block;
        padding: 10px 20px;
        color: var(--color-text-white);
        text-decoration: none;
        font-size: 14px;
        transition: var(--transition-fast);
    }

    .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: var(--color-accent-gold);
        padding-left: 25px;
    }
}

/* Mobile Sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-base);
    /* Dark Green */
    z-index: 2000;
    transition: var(--transition-smooth);
    padding: 20px;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    left: 0;
    box-shadow: 10px 0 50px rgba(0, 0, 0, 0.5);
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--color-text-white);
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-accent-gold);
}

.sidebar-link i {
    width: 25px;
    color: var(--color-accent-gold);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(5px);
}

/* Footer Styling */
footer {
    background: #05261d;
    /* Deepest Green */
    border-top: 1px solid var(--color-accent-gold);
    padding: 60px 0 30px;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-accent-gold);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--color-cta-primary);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-white);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-cta-primary);
    color: black;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Ensure footer has padding bottom on mobile so nav doesn't cover it */
@media (max-width: 768px) {
    footer {
        padding-bottom: 80px;
    }
}

/* Blog Styling */
.blog-header {
    background: linear-gradient(rgba(5, 38, 29, 0.9), rgba(5, 38, 29, 0.9)), url('../images/hero_banner_new.png');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--color-accent-gold);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    font-size: 12px;
    color: var(--color-cta-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--color-text-white);
}

.blog-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    font-size: 14px;
    color: var(--color-accent-gold);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    text-decoration: underline;
    gap: 8px;
}