
/* ================= THEME VARIABLES ================= */

/* DARK THEME (default) */
:root {
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --navbar-bg: #020617;
    --footer-bg: #020617;
    --section-light: #111827;
    --heading-color: #f9fafb;
    --card-shadow: rgba(0, 0, 0, 0.5);
    --card-body-bg: #1e293b;
    --card-body-text: #e5e7eb;
    --text-muted-rgb: 243,244,246; /* #f3f4f6 */

    --card-bg: #1e293b; /* card background */
    --strong-color: #ffffff;
    --td-color: #ffffff;
    --privacy-text: #e5e7eb; /* bright gray/white on dark background */
    --privacy-link: #60a5fa;
    --terms-text: #e5e7eb; /* bright gray/white on dark bg */
    --terms-link: #60a5fa; /* links in terms content */
    /*input*/
    --input-bg: #1e293b; /* dark background */
    --input-text: #e5e7eb; /* text inside input */
    --input-placeholder: #9ca3af; /* placeholder text */
    --input-border: #334155; /* border color */
}

/* LIGHT THEME */
body.dark-theme {
    --bg-main: #f4f4f4;
    --bg-card: #ffffff;
    --text-main: #222;
    --text-muted: #666;
    --navbar-bg: #1f2a44;
    --footer-bg: #1c1f3a;
    --section-light: #f8f9fa;
    --heading-color: #111827;
    --card-shadow: rgba(0, 0, 0, 0.15);
    --card-body-bg: #ffffff;
    --card-body-text: #111827;
    --text-muted-rgb: 108,117,125; /* #6c757d */

    --card-bg: #ffffff;
    --strong-color: #111827;
    --td-color: #111827;
    --privacy-text: #111827; /* dark text on light background */
    --privacy-link: #1d4ed8; /* standard link color for light bg */

    --terms-text: #111827; /* dark text on light bg */
    --terms-link: #1d4ed8; /* standard link color for light bg */

    --input-bg: #ffffff;
    --input-text: #111827;
    --input-placeholder: #6b7280;
    --input-border: #d1d5db;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
}

#mainContent {
    background: var(--bg-main);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3 {
    text-shadow: 0 0 8px rgba(255,255,255,0.15);
}

.theme-text {
    color: var(--text-main);
}

/* Keep hero headings always white */
.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
    color: #fff !important;
}
/* Navbar */
.navbar {
    background: var(--navbar-bg);
    padding: 18px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    border-bottom: #198754 3px solid;
}

.navbar-brand {
    font-weight: 700;
    font-size: 35px !important;
    letter-spacing: 1px;
}

/* Mobile devices */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 25px !important;
    }
}

.nav-link {
    font-weight: 500;
    margin-left: 27px;
    transition: .3s;
    color: #fff !important;
    font-size: 18px !important;
    margin-top: 15px;
}

    .nav-link:hover {
        color: #ffd43b !important;
    }

/*Hero section*/
.hero {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url("/images/new-baner.webp") center left / cover no-repeat;
    position: relative;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    /* subtle overlay for text readability */
    background-blend-mode: overlay;
    background-color: rgba(0,0,0,0.35);
    border-bottom: #198754 3px solid;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 920px;
    background: rgba(0,0,0,0.3); /* subtle overlay for readability */
    padding: 3rem 4rem;
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
}
/* Make search input wider, responsive */
.hero-search-input {
    min-width: 400px; /* default width on desktop */
    max-width: 600px; /* limit maximum width */
    width: 100%; /* fills parent container */
    transition: all 0.3s ease;
}

/* On smaller screens */
@media (max-width: 768px) {
    .hero-search-input {
        min-width: 250px;
    }
}

/* ===== Responsive Adjustments for Mobile ===== */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem 1.1rem; /* reduce padding on smaller screens */
    }

    .hero h1 {
        font-size: 1.45rem; /* smaller title */
    }

    .hero p {
        font-size: 1rem; /* slightly smaller paragraph */
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0; /* even tighter on very small screens */
    }

    .hero h1 {
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 0.75rem;
    }
}

.float-right {
    float: right !important;
}
/* Buttons */
.hero-cta .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.3s;
}

    .hero-cta .btn:hover {
        transform: translateY(-3px);
    }


.bg-light {
    background: var(--section-light) !important;
}

/* Cards */
/* Common card style */
/* Card container */
.card {
    background-color: var(--card-bg) !important;
}


    /* Hover effect for card */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    }

.game-card,
.category-card {
    border-radius: 15px; /* Rounded corners */
    overflow: hidden; /* Keep inner content neat */
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--bg-card); /* theme aware */
    box-shadow: 0 4px 12px var(--card-shadow); /* subtle shadow */
    border: 1px solid rgba(0,0,0,0.05); /* soft border */
}

    /* Hover effect: lift + stronger shadow */
    .game-card:hover,
    .category-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 35px var(--card-shadow);
    }

.card,
.game-card {
    background: var(--bg-card);
    color: var(--text-main);
}

.game-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: .3s;
}

    .game-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,.2);
    }

.rating {
    color: #ffc107;
}

/* Category Boxes */
.category {
    padding: 40px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    text-align: center;
}

.cat1 {
    background: linear-gradient(135deg,#ff6a00,#ff3c78);
}

.cat2 {
    background: linear-gradient(135deg,#00c6ff,#0072ff);
}

.cat3 {
    background: linear-gradient(135deg,#00b09b,#96c93d);
}

.cat4 {
    background: linear-gradient(135deg,#8e2de2,#4a00e0);
}


/*Footer area*/
footer {
    background: var(--footer-bg);
    color: white;
    padding: 10px;
}

.footer-gaming {
    color: #ccc;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .footer-gaming h3,
    .footer-gaming h5 {
        color: #fff;
    }

.footer-links li {
    margin-bottom: 2px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: all 0.2s;
}

    .footer-links a:hover {
        color: #0d6efd;
        transform: translateX(3px);
    }

.footer-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 5px 0;
}

.footer-social a {
    color: #bbb;
    font-size: 18px;
    margin: 0 5px;
    transition: all 0.3s;
}

    .footer-social a:hover {
        color: #0d6efd;
        transform: scale(1.2);
    }

.footer-gaming p {
    color: #bbb;
}


/*Game on home page*/

.game-hero {
    height: 420px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
}

    .game-hero .overlay {
        background: rgba(0,0,0,0.6);
        height: 100%;
        display: flex;
        align-items: center;
    }

.game-card img {
    height: 250px;
    object-fit: fill;
}

.rating {
    font-size: 1.3rem;
    color: #ffcc00;
    font-weight: bold;
}

.requirements {
    background: #111;
    color: #0f0;
    padding: 15px;
    border-radius: 8px;
}

.game-description img {
    max-width: 100%;
}

.game-card {
    transition: all .3s ease;
    border-radius: 12px;
    overflow: hidden;
}

    .game-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .game-card img {
        transition: transform .4s ease;
    }

    .game-card:hover img {
        transform: scale(1.05);
    }


/*Categories*/

.category-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }


/*Game details page*/
.thumb-wrapper {
    width: 100%;
    height: 260px; /* fixed height */
    overflow: hidden;
    background: #f8f9fa; /* prevents ugly gaps */
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: fill; /* prevents stretching */
}

.banner-wrapper {
    width: 100%;
    height: 380px; /* consistent hero height */
    overflow: hidden;
    border-radius: 12px;
    background: #f1f3f5;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
/* Featured Game Image Wrapper */
.featured-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f3f5f7;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Actual Image */
.featured-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* KEY FIX */
    transition: transform .3s ease;
}

/* Subtle hover effect */
.game-card:hover .featured-thumb-img {
    transform: scale(1.05);
}


/*Game Category page*/
/* ===== CATEGORY PAGE COMPACT STYLE ===== */
.card {
    border-radius: 20px !important
}

.category-grid .game-card {
    margin-bottom: 0;
    border-radius: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}

/* Smaller image height */
.category-grid .featured-thumb {
    height: 180px; /* was 220px */
}

.card-body {
    background: var(--card-body-bg);
    color: var(--card-body-text);
    transition: background 0.3s, color 0.3s;
}

    /* Reduce card padding */
    .card-body h5 {
        text-align: center;
    }

.category-grid .card-body {
    padding: 14px;
}

    /* Reduce text spacing */
    .category-grid .card-body p {
        margin-bottom: 6px;
        font-size: 14px;
    }

    /* Smaller title */
    .category-grid .card-body h5 {
        font-size: 17px;
        margin-bottom: 10px;
    }

/* Smaller rating section spacing */

.rounded-category {
    border-radius: 20px;
}

.category-grid .rating {
    margin-bottom: 12px !important;
}

/* Smaller buttons */
.category-grid .btn-lg {
    padding: 8px 12px;
    font-size: 14px;
}

/* Subtle hover */
.category-grid .game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,.12);
}


/*News page  */

.news-detail h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.news-detail .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 18px;
}

.news-detail img {
    object-fit: fill;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

    .news-detail img:hover {
        transform: scale(1.02);
    }

.news-detail .card {
    border-radius: 12px;
}

@media(max-width:768px) {
    .news-detail h1 {
        font-size: 1.8rem;
    }

    .news-detail .lead {
        font-size: 1rem;
    }
}

.news-detail-img {
    width: 100%;
    max-width: 700px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

    .news-detail-img:hover {
        transform: scale(1.02);
    }

@media(max - width:992px) {
    .news-detail-img {
        max-height: 300px;
    }
}

@media(max - width:768px) {
    .news-detail-img {
        height: 200px;
    }
}


.stars .fs-5 {
    font-size: 18px !important;
}

.rating {
    font-size: 14px !important;
}

.short-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-btn {
    transition: 0.3s;
}

    .share-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,.2);
    }

.seo-section {
    border-bottom: #198754 3px solid;
}

.text-muted {
    color: rgba(var(--text-muted-rgb), 1) !important;
}

.margin-top-10 {
    margin-top: 20px;
    margin-left: 10px;
}


/* Game Info Grid spacing */
.card-body .game-info p {
    margin: 0.35rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

/* Margin between icon and text */
.card-body .game-info i {
    font-size: 1rem;
    color: #0d6efd; /* optional accent color */
}

/* Rating Section Borders & Spacing */
.card-body .rating-section .col-4 {
    padding: 0.5rem 0;
}

/* Buttons */
.card-body .download-btn {
    font-size: 1rem;
}

/* Button hover effect */
.card-body .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

strong, td {
    color: var(--strong-color);
    transition: color 0.3s ease; /* smooth transition on theme switch */
}

/*Privacy section*/

.privacy-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.privacy-content p, .privacy-content ul {
    font-size: 0.95rem;
    line-height: 1.6;
}

    .privacy-content ul li {
        margin-bottom: 0.5rem;
    }

.privacy-content a {
    color: #5f2eea;
    text-decoration: underline;
}

    .privacy-content a:hover {
        text-decoration: none;
    }

.privacy-content {
    color: var(--privacy-text);
    transition: color 0.3s ease; /* smooth switch on theme toggle */
}

    .privacy-content a {
        color: var(--privacy-link);
        text-decoration: underline;
        transition: color 0.3s ease;
    }

        .privacy-content a:hover {
            color: var(--privacy-link);
            opacity: 0.8; /* subtle hover effect */
        }


/*Terms section*/

.terms-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.terms-content p, .terms-content ul {
    font-size: 0.95rem;
    line-height: 1.6;
}

    .terms-content ul li {
        margin-bottom: 0.5rem;
    }

.terms-content {
    color: var(--terms-text);
    transition: color 0.3s ease; /* smooth switch when toggling theme */
}

    .terms-content a {
        color: var(--terms-link);
        text-decoration: underline;
        transition: color 0.3s ease;
    }

        .terms-content a:hover {
            opacity: 0.8; /* subtle hover effect */
        }


/*form Control*/
.form-control {
    background-color: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--input-border);
    transition: all 0.3s ease;
}

    .form-control::placeholder {
        color: var(--input-placeholder);
        opacity: 1; /* ensure full opacity for dark/light mode */
    }

/* ================= Dark Theme (default) ================= */
.uper-footer {
    background: linear-gradient(135deg, #0b0c1a, #1f1b38, #2c2546, #3d3060);
    color: #fff;
    transition: all 0.3s ease;
}

    .uper-footer h2,
    .uper-footer p {
        color: inherit; /* inherit from parent */
    }


    .uper-footer button.btn {
        color: #fff;
    }

/* ================= Light Theme ================= */
body.dark-theme .uper-footer {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef, #f1f3f5) !important;
    color: #111827 !important;
}



/* UPDATED / NEW badge - brighter & more prominent */
.badge-updated {
    background: linear-gradient(45deg, #10b981, #22c55e); /* vibrant green */
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    padding: 0.25rem 0.6rem;
    position: absolute;
    top: 8px;
    left: -10px;
    transform: rotate(-25deg); /* diagonal */
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

/* New badge - brighter yellow/orange */
.badge-new {
    background: linear-gradient(45deg, #facc15, #fbbf24); /* brighter yellow gradient */
    color: #111827; /* darker text for contrast */
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    padding: 0.25rem 0.6rem;
    position: absolute;
    top: 8px;
    left: -10px;
    transform: rotate(-25deg);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

/* Dark / Light theme toggle */
body.light-theme .badge-updated {
    background: linear-gradient(45deg, #22c55e, #4ade80); /* lighter green */
    color: #111827;
}

body.light-theme .badge-new {
    background: linear-gradient(45deg, #fcd34d, #fbbf24); /* lighter yellow */
    color: #111827;
}

/* SEO BLOCKS */

.seo-block {
    padding: 60px 0;
    background: var(--bg-main);
    color: var(--text-main);
    border-top: 1px solid rgba(var(--text-muted-rgb),0.1);
}

.seo-block-light {
    background: var(--section-light);
}

.seo-block h2 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.seo-block p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.seo-block li {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.seo-card {
    background: var(--bg-card);
    color: var(--text-main);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px var(--card-shadow);
    padding: 20px;
}

.seo-table {
    background: var(--bg-card);
    color: var(--td-color);
}

    .seo-table th {
        color: var(--strong-color);
    }


