:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --accent-color: #6c5ce7;
    --accent-hover: #5849c2;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --border-color: #dfe6e9;
    --success-color: #00b894;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll globally */
    width: 100%;
}

/* Ensure images/iframes don't overflow */
img,
iframe,
video {
    max-width: 100%;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
}

/* Layout */
/* Layout */
.game-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}


.content-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.full-width-content {
    max-width: 100% !important;
    width: 95% !important;
}

.content-container h1 {
    margin-bottom: 1.5rem;
    color: #000;
}

.content-container h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #222;
    font-size: 1.4rem;
}

.content-container p,
.content-container li {
    margin-bottom: 1rem;
    color: #444;
}

.content-container ul,
.content-container ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Game Container */
.game-container-wrapper {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.game-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio approx for 800x600 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}


/* Portrait Game Fix */
.game-embed-container.portrait {
    /* Set a reasonable Aspect Ratio for mobile first (canvas standard 2:3 or 9:16) */
    padding-bottom: 120%;
    max-width: 450px;
    margin: 0 auto;
}

/* On Desktop, allow full sizing */
@media (min-width: 768px) {
    .game-embed-container.portrait {
        padding-bottom: 0;
        height: 85vh;
        /* Use viewport height for immersive feel */
        width: 100%;
        max-width: 100%;
        /* remove constraint */
    }

    .game-embed-container.portrait iframe {
        position: relative;
        height: 100%;
        width: 100%;
    }
}

.game-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.action-btn {
    background: var(--accent-color);
    color: white;
    /* Button text stays white */
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: var(--accent-hover);
}

.rating-display {
    color: #fdcb6e;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.rating-display span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Game Info - Vertical Layout */
.game-info h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.tabs {
    display: none;
    /* Hide old tabs */
}

/* Redesign each content section as a distinct box */
.tab-content {
    display: block !important;
    /* Force all to show */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.tab-content::before {
    content: attr(id);
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: capitalize;
}

.specs-list {
    list-style: none;
    margin: 0 !important;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list strong {
    color: var(--text-primary);
}

/* Personal Opinion Section */
.personal-opinion-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-soft);
}

.personal-opinion-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.personal-opinion-content p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Reviews */
.reviews-section {
    margin-top: 3rem;
}

.reviews-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.add-review {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.add-review h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.star-rating-input {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #fdcb6e;
    cursor: pointer;
}

textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 1rem;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.submit-btn {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

.review-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.review-stars {
    color: #fdcb6e;
    font-size: 0.9rem;
}

.review-body {
    color: var(--text-secondary);
}

/* Sidebar */
.sidebar {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.games-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-card {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    transition: background 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.game-card:hover {
    background: var(--bg-color);
    border-color: var(--border-color);
}

.game-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    color: rgba(0, 0, 0, 0.5);
    background: #e2e2e2;
}

.game-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-details h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.game-details span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Footer styles moved to bottom of file */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Tablet & Smaller Desktops (max-width: 992px) */
@media (max-width: 992px) {
    .game-layout {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        width: 100%;
        /* Ensure it fits */
        box-sizing: border-box;
    }

    .game-container-wrapper {
        margin-bottom: 2rem;
        padding: 1rem;
        /* Reduce padding on smaller screens */
    }

    .sidebar {
        width: 100%;
        max-width: 100%;
    }

    .games-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    /* Make game player responsive on tablets too */
    .game-embed-container {
        padding-bottom: 60%;
        /* Slightly taller for tablets/landscape */
        height: auto !important;
        background: #000;
        width: 100%;
    }

    /* Force fix for iframe sizing */
    .game-embed-container iframe {
        height: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        /* Override inline min-width */
        max-width: 100% !important;
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .main-header {
        flex-direction: row;
        /* Row for Logo + Toggle */
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        position: relative;
    }

    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1002;
    }

    /* Hide Search on Mobile Header */
    .search-bar {
        display: none;
    }

    /* Mobile Nav Overlay */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        /* Opaque white/card background */
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
        /* Hidden by default */
        z-index: 1001;
        overflow-x: hidden;
    }

    nav.active {
        display: flex;
        /* Shown when toggled */
        animation: slideDown 0.3s ease;
    }

    nav a {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }


    .hero-section {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .games-grid-main {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 1rem;
        padding: 0 1rem;
    }

    .card-image {
        height: 120px;
        /* Smaller images */
    }

    .card-info {
        padding: 0.8rem;
    }

    .card-info h3 {
        font-size: 1rem;
    }

    .rating {
        margin-top: 0.5rem;
        font-size: 0.8rem;
    }

    /* Game Page Mobile */
    .game-embed-container {
        padding-bottom: 56.25%;
        /* 16:9 for landscape games on mobile */
        height: auto !important;
        /* Override fixed inline heights */
    }

    .game-embed-container.portrait {
        padding-bottom: 177.78% !important;
        /* Force 9:16 on mobile */
        max-width: 100%;
        /* Full width on mobile */
    }

    .game-embed-container iframe {
        height: 100% !important;
        width: 100% !important;
    }

    .game-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .action-btn {
        justify-content: center;
        width: 100%;
    }

    .rating-display {
        justify-content: center;
    }

    .game-info h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .games-grid-main {
        grid-template-columns: 1fr;
        /* 1 column on very small screens */
    }

    .card-image {
        height: 180px;
    }
}

/* --- Homepage Specific Styles --- */

.search-bar {
    position: relative;
    width: 300px;
}

.search-bar input {
    width: 100%;
    padding: 0.7rem 1rem;
    padding-right: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-primary);
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-bar input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.search-bar i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.hero-section {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Overlay for text readability */
    z-index: 1;
}

.hero-content {
    z-index: 2;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: white;
    /* Hero text always white over image */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f1f1f1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-search-wrapper input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-search-wrapper input:focus {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-search-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.2rem;
    pointer-events: none;
}

.section-title {
    font-size: 2rem;
    margin: 2rem 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.games-grid-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    margin-bottom: 3rem;
}

.game-card-main {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.game-card-main:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.card-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f1f1f1;
}

.placeholder-icon {
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 92, 231, 0.8);
    /* Accent color overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-overlay i {
    font-size: 3rem;
    color: white;
}

.game-card-main:hover .play-overlay {
    opacity: 1;
}

.card-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.tags {
    margin-bottom: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    background: var(--bg-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.rating {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #fdcb6e;
}


/* Global Link Styles - No Underlines */
a {
    text-decoration: none !important;
    color: inherit;
}

/* Footer Overhaul */
footer {
    background-color: #f1f2f6;
    padding: 3rem 5%;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    color: #000000;
    /* Force black text */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Explicit 3 columns for desktop */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        text-align: center;
    }
}

.footer-col h4 {
    color: #000000;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #444444;
    /* Dark grey for links */
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666666;
}

/* Footer Socials Professional Style */
/* Footer Socials Professional Style */
.footer-socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 15px;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #dfe6e9;
    font-size: 1.3rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.footer-social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* Brand Colors - Default State (Colored Icon) */
.footer-social-link.discord {
    color: #5865F2;
}

.footer-social-link.instagram {
    color: #E1306C;
}

.footer-social-link.twitter {
    color: #000000;
}

.footer-social-link.whatsapp {
    color: #25D366;
}

/* Brand Colors - Hover State (Filled Background) */
.footer-social-link.discord:hover {
    background: #5865F2;
    color: white;
}

.footer-social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.footer-social-link.twitter:hover {
    background: #000;
    color: white;
}

.footer-social-link.whatsapp:hover {
    background: #25D366;
    color: white;
}

/* Existing Socials (check usage, if none delete later) */
.socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.socials a {
    color: #444444;
    font-size: 1.2rem;
}

/* Luxury Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 5rem auto;
    padding: 3rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.auth-container h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: #2d3436;
    font-weight: 700;
}

.auth-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1.5rem;
}

.auth-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 45px;
    /* Make space for the eye icon */
}

.password-toggle-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #b2bec3;
    z-index: 5;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.password-toggle-icon:hover {
    color: #6c5ce7;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Auth Pages */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.message.error {
    background: #ffe6e6;
    color: #d63031;
    border: 1px solid #fab1a0;
}

.message.success {
    background: #dff9fb;
    color: #00b894;
    border: 1px solid #55efc4;
}


/* About Us Page - Professional Redesign */
.about-hero {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-radius: 20px;
    margin-bottom: 4rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #2d3436;
    font-weight: 800;
    letter-spacing: -1px;
}

.about-hero p {
    font-size: 1.25rem;
    color: #636e72;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.about-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.about-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2d3436;
}

.about-card h2 i {
    font-size: 1.8rem;
}

.meet-the-team {
    margin: 6rem 0;
}

.team-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #ffffff;
    padding: 2rem;
    /* Reduced padding for compact look */
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
    max-width: 800px;
    /* Constrain width */
    margin: 0 auto;
}

.team-img img {
    width: 120px;
    /* Smaller size */
    height: 120px;
    border-radius: 20px;
    /* Soft square/rounded rect for 'frame' look */
    object-fit: cover;
    border: 4px solid #ffffff;
    /* Inner border */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Frame shadow */
}

.team-info h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.5rem;
    color: #2d3436;
}

.team-info .role {
    display: inline-block;
    background: rgba(45, 52, 54, 0.05);
    color: #2d3436;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.community-invite {
    margin-top: 5rem;
    padding: 5rem 1rem;
    background: #000000;
    /* Pure black */
    color: white;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Add a subtle glow/pattern to black background if desired, or keep it simple */
.community-invite::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, #222 0%, #000 70%);
    opacity: 0.5;
    z-index: 0;
}

.community-invite h2,
.community-invite p,
.community-invite .social-links {
    position: relative;
    z-index: 1;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    color: white;
    /* Default white icons */
    backdrop-filter: blur(5px);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    background: white;
}

/* Brand colors on hover */
.social-links a:hover .fa-discord {
    color: #5865F2;
}

.social-links a:hover .fa-x-twitter {
    color: #000000;
}

.social-links a:hover .fa-instagram {
    color: #E1306C;
}

/* Contact Us Page - Professional */
.contact-layout {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-top: 1rem;
}

.contact-method {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-form-wrapper {
    flex: 1.5;
    min-width: 350px;
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* More premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2d3436;
}

.contact-form-wrapper form label {
    font-weight: 600;
    color: #636e72;
    font-size: 0.95rem;
}

.contact-form-wrapper form input,
.contact-form-wrapper form select,
.contact-form-wrapper form textarea {
    background: #fdfdfd;
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    padding: 15px;
    width: 100%;
    transition: all 0.3s;
}

.contact-form-wrapper form input:focus,
.contact-form-wrapper form select:focus,
.contact-form-wrapper form textarea:focus {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .team-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-info,
    .contact-form-wrapper {
        min-width: 100%;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero {
        padding: 3rem 1rem;
    }
}


/* Password Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
    /* Space for icon */
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    z-index: 2;
}

/* User Profile in Header */
.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Blog Grid Professional Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.blog-thumb {
    height: 240px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.08);
}

/* Add a subtle overlay gradient on image hover for depth */
.blog-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.blog-card:hover .blog-thumb::after {
    opacity: 1;
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.blog-date {
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
}

.blog-tag-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.35;
    letter-spacing: -0.5px;
    transition: color 0.3s;
}

.blog-card:hover .blog-title {
    color: var(--accent-color);
}

.blog-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s, color 0.3s;
    border-top: 1px solid #f1f2f6;
    padding-top: 1.5rem;
    margin-top: auto;
}

.read-more-link i {
    font-size: 0.9rem;
    transition: transform 0.3s;
    color: var(--accent-color);
}

.blog-card:hover .read-more-link {
    color: var(--accent-color);
    gap: 0.8rem;
}

.blog-card:hover .read-more-link i {
    transform: translateX(3px);
}

/* Sidebar Luxury Styles */
.sidebar h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f2f6;
    color: var(--text-primary);
}

.sidebar .game-card {
    display: flex;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 12px;
    transition: background 0.2s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.sidebar .game-card:hover {
    background: #f8f9fa;
    border-color: #eee;
}

.sidebar .game-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sidebar .game-details h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.sidebar .game-details span {
    font-size: 0.8rem;
    color: #888;
}

/* Article Styling */
.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.blog-post .meta-info {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2rem;
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

.blog-post p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.featured-image {
    width: 100%;
    border-radius: 16px;
    margin: 0 0 2rem 0;

    margin: 0 0 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* =========================================
   Mobile Header & Navigation
   ========================================= */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem 1.5rem;
    }

    .menu-toggle {
        display: block;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        z-index: 1001;
    }

    /* Mobile Navigation Drawer */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hidden by default */
        width: 80%;
        /* Drawer width */
        max-width: 300px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        gap: 1.5rem;
    }

    nav.active {
        right: 0;
        /* Slide in */
    }

    nav a {
        font-size: 1.1rem;
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #f1f2f6;
        color: var(--text-primary);
    }

    nav a:last-child {
        border-bottom: none;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        z-index: 999;
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Adjust logo size */
    .logo {
        font-size: 1.3rem;
    }
}

/* Tablet Optimizations for Header */
@media (min-width: 769px) and (max-width: 1024px) {
    nav {
        gap: 1.2rem;
    }

    nav a {
        font-size: 0.95rem;
    }
}

/* =========================================
   Global Responsive Layouts (Pages)
   ========================================= */

@media (max-width: 900px) {

    /* Home Page & General Grid Stacking */
    .games-grid-main,
    .about-grid,
    .blog-grid,
    .contact-layout {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .game-layout {
        grid-template-columns: 1fr;
        /* Stack sidebar below game */
        padding: 0 1rem;
        margin-top: 1rem;
    }

    .sidebar {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {

    /* General Container Adjustments */
    .content-container {
        padding: 1.5rem;
        margin: 2rem auto;
        width: 95%;
    }

    .full-width-content {
        padding: 1rem;
    }

    /* Typography Scaling */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-search-wrapper {
        width: 90%;
        flex-direction: row;
        /* Keep icon inside */
    }

    /* Contact Page Mobile */
    .contact-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* About Page Mobile */
    .about-hero {
        padding: 3rem 1rem;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .team-img img {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    /* Blog Page Mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        /* Single column for blog on mobile */
        gap: 2rem;
    }

    .blog-thumb {
        height: 200px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack footer cols */
        text-align: center;
        gap: 2rem;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    /* Login/Auth Mobile */
    .auth-container {
        margin: 2rem 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {

    /* Small Phone Fixes */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .game-actions {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .blog-title {
        font-size: 1.3rem;
    }
}