﻿/* Google Fonts Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gothic+A1:wght@900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@700&display=swap');

:root {
    --font-main-montserrat: "Montserrat", sans-serif;
    --font-main-archivo: "Archivo Black", sans-serif;
    --font-main-gothic: "Gothic A1", sans-serif;
    --font-main-atkinson: "Atkinson Hyperlegible", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    height: 100%;
    font-family: var(--font-main-montserrat);
    color: white;
    background: #000;
    overflow: hidden;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(20,20,25,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 6000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo */
.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Title */
.brand-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
}

.app-container {
    margin-top: 56px; /* header height */
    margin-bottom: 44px; /* footer height */
    height: calc(100vh - 100px);
    display: flex;
    height: 100vh;
    background-image: url('/mnt/data/f62e91fb-0c2e-464e-b6aa-3e41bd58ed89.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.left-panel,
.right-panel {
    height: 100%;
    overflow-y: auto;
}

/* Left Panel */
.left-panel {
    width: 280px;
    background: rgba(28,28,30,0.9);
    display: flex;
    flex-direction: column;
    padding: 20px 20px 40px 20px;
    position: relative;
    z-index: 7000;
}

.left-header {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

    .left-header svg {
        stroke: white;
        stroke-width: 2;
        width: 22px;
        height: 22px;
    }

.search-container {
    margin-bottom: 20px;
}

    .search-container input[type="search"] {
        width: 100%;
        padding: 8px 12px;
        border-radius: 8px;
        border: none;
        background: #2c2c2e;
        color: white;
        font-size: 14px;
    }

        .search-container input[type="search"]::placeholder {
            color: #8e8e93;
        }


/* Menu */
.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .menu button {
        display: flex;
        align-items: center;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 10px 14px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 8px;
        cursor: pointer;
        color: #8e8e93;
        transition: background-color 0.25s, color 0.25s;
    }

        .menu button.active, .menu button:hover {
            background: #3a3a3c;
            color: white;
        }

        .menu button svg {
            stroke: currentColor;
            stroke-width: 2;
            width: 20px;
            height: 20px;
        }

    .menu .icon {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
    }

/* Right Panel */
.right-panel {
    flex: 1;
    backdrop-filter: brightness(0.6);
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.95) 85%);
    display: flex;
    flex-direction: column;
    padding: 20px 30px;
    overflow-y: auto;
    position: relative;
}

/* List grid */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}


.game-card {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 260px;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}


    .game-card img {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        object-fit: cover;
        flex-shrink: 0;
    }

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-title {
    font-weight: 700;
    font-size: 14px;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-subtitle {
    font-weight: 400;
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-button {
    background: #0a3dff;
    border: none;
    border-radius: 14px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 13px;
    color: white;
    cursor: pointer;
    transition: background-color 0.25s;
    flex-shrink: 0;
}

    .action-button:hover {
        background: #2356ff;
    }

/* Scrollbar for right-panel */
.right-panel::-webkit-scrollbar {
    width: 8px;
}

.right-panel::-webkit-scrollbar-track {
    background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Footer styling */
.footer-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(28,28,30,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #888;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 5000;
}

footer a {
    color: white;
    text-decoration: none;
}

footer p {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
}
/* Smooth transitions */
.app-container,
.left-panel,
.right-panel {
    transition: all 0.35s ease;
}

/* Collapsed state */
.app-container.menu-collapsed .left-panel {
    width: 64px;
    padding: 20px 10px;
}

/* ICON-ONLY MODE */
.app-container.menu-collapsed .left-header,
.app-container.menu-collapsed .search-container,
.app-container.menu-collapsed .menu button .label {
    display: none;
}

/* Center icons */
.app-container.menu-collapsed .menu button {
    justify-content: center;
}

/* Expanded state */
.left-panel {
    transition: width 0.35s ease, padding 0.35s ease;
}

/* Right panel expands */
.app-container.menu-collapsed .right-panel {
    width: 100%;
}

.hero {
    position: relative;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0f111a;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero button {
    padding: 1rem 2rem;
    background: #4a90e2;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.panel-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    backdrop-filter: blur(10px);
}

    .panel-nav button {
        background: none;
        border: none;
        font-size: 1.8rem;
        color: white;
        cursor: pointer;
        text-shadow: 0 0 10px #ffdd59;
    }
        /* Hover effect (optional) */
        .panel-nav button:hover {
            color: turquoise;
        }

        /* Selected (active) button */
        .panel-nav button.active {
            color: turquoise; /* red text */
            font-weight: 700; /* bold */
            text-shadow: 0 0 10px turquoise; /* subtle red glow */
        }

.panel {
    display: none;
    padding: 3rem 2rem;
}

    .panel.active {
        display: block;
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content stays above particles */
.right-panel > * {
    position: relative;
    z-index: 1;
}

/* Consistent top spacing for both Games & Tools */
#all-tools-games-list .game-list,
#all-tools-tools-list .game-list {
    margin-top: 50px;
}



#all-tools-tools-list {
    display: flex; /* keep items in a row if multiple */
    flex-wrap: wrap; /* allow wrapping */
    gap: 1rem; /* spacing between cards */
}

    #all-tools-tools-list .game-card {
        width: 280px;
        aspect-ratio: 1 / 1;
    }

/* ===== SUBMENU CONTAINER ===== */
.menu-item {
    position: static;
}


.submenu {
    position: fixed;
    top: auto;
    left: 64px; /* just outside collapsed sidebar */
    background: rgba(28, 28, 30, 0.95);
    border-radius: 10px;
    padding: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 2000;
}

    /* submenu items */
    .submenu a {
        color: white;
        text-decoration: none;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 14px;
    }

        .submenu a:hover {
            background: #3a3a3c;
        }

/* ===== SHOW ON HOVER ===== */
.menu-item.has-submenu:hover .submenu {
    display: flex;
}


.menu-item.search-match > button {
    background: #3a3a3c;
    color: white;
}

.submenu a.search-match {
    background: #0a3dff;
    color: white;
}
/* Show submenu when pinned (search or click) */
.menu-item.has-submenu.pinned .submenu {
    display: flex;
}


.section-title,
.all-tools-genre {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    /* exact glow */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
    /* spacing only, no decoration */
    margin-bottom: 24px;
    transition: color 0.25s ease;
}


/* size parity */
.section-title {
    font-size: 20px;
    margin-bottom: 28px;
}

.all-tools-genre {
    font-size: 16px;
    margin-bottom: 20px;
}

    /* EXACT underline from panel-nav */
    .section-title::after,
    .all-tools-genre::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 2px;
        background: #ffffff;
        opacity: 1;
        transform: scaleX(1);
    }


.centered-box {
    max-width: 1200px; /* box width */
    width: 90%; /* responsive */
    margin: 60px auto; /* vertically and horizontally centered */
    padding: 40px 30px;
    background: rgba(28,28,30,0.85);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center; /* center box content horizontally */
}

.all-tools-row {
    width: 100%;
    margin-bottom: 40px; /* space between genre rows */
}

.all-tools-list {
    display: flex;
    flex-wrap: wrap; /* wrap cards to next line */
    justify-content: flex-start; /* align left */
    gap: 20px; /* space between cards */
    overflow: visible; /* allow wrapping */
    padding-bottom: 10px;
}

    /* Card hover zoom effect */
    /*.all-tools-list .game-card {
        width: 240px;
        height: 320px;
        background: rgba(40, 40, 45, 0.9);
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        padding: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .all-tools-list .game-card:hover {
            transform: scale(1.05);*/ /* zoom on hover */
            /*box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
        }*/


/* Base card override */
/*.game-card {
    position: relative;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease;
}*/

    /* Slight zoom on hover */
    /*.game-card:hover {
        transform: scale(1.03);
    }*/

/* Green hover border */
/*.game-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    box-shadow: 0 0 0 0 #2aff2a;
    transition: box-shadow 0.25s ease;
    pointer-events: none;
}

.game-card:hover::after {
    box-shadow: 0 0 0 3px #2aff2a;
}*/

/* Bottom gradient overlay */
.banner-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0) );
}

/* Title */
.banner-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

/* Subtitle (hidden until hover) */
.banner-subtitle {
    font-size: 11px;
    color: #cccccc;
    opacity: 0;
    margin-top: 2px;
    transition: opacity 0.25s ease;
}

.game-card:hover .banner-subtitle {
    opacity: 1;
}

/* ===============================
   RIGHT PANEL TOP ROW BEHAVIOR
================================ */
#all-tools-games-list .game-list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
}


#all-tools-games-list .game-card {
    min-width: 280px;
}

/* ===============================
   ALL TOOLS ROW SIZE ADJUSTMENT
================================ */
.all-tools-list .game-card {
    width: 240px;
    height: auto;
}



/* Remove old inner elements safely */
.game-info,
.action-button {
    display: none !important;
}

/* ===============================
   BANNER CARD HOVER EFFECT
================================ */
.game-card {
    cursor: pointer;
}

/* Banner wrapper */
.banner-card {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.banner-card {
    position: relative;
    overflow: hidden;
}
    /* Banner image */

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* keeps aspect ratio */
    background: rgba(255, 255, 255, 0.2); /* ultra-light almost transparent white */
    backdrop-filter: blur(12px); /* stronger glass blur */
    -webkit-backdrop-filter: blur(12px); /* Safari support */
    transition: filter 0.25s ease, transform 0.25s ease;
    border-radius: 6px; /* optional */
    text-shadow: 0 0 10px #ffdd59;
}


/* Hover border */
.game-card:hover .banner-card {
    border-color: #00ff9c;
    box-shadow: 0 0 18px rgba(0, 255, 156, 0.45);
}


    /* Brighten image on hover */
    .game-card:hover .banner-card img {
        filter: brightness(1);
        transform: scale(1.03);
    }


/* ==================================
   CATEGORY STRIP (BETWEEN SECTIONS)
================================== */
.category-strip {
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: 20px;
    margin: 60px 0;
}

/* Left info card */
.category-info {
    background: linear-gradient( 145deg, rgba(40, 40, 55, 0.95), rgba(25, 25, 35, 0.95) );
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.category-info h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.category-info p {
    font-size: 0.95rem;
    color: #cfd3ff;
    line-height: 1.5;
    margin-bottom: 12px;
}

.category-link {
    color: #7aa2ff;
    font-weight: 600;
    text-decoration: none;
}

.category-link:hover {
    text-decoration: underline;
}

/* Right tile grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

/* Category tiles */
.category-tile {
    background: rgba(30, 30, 45, 0.95);
    border-radius: 14px;
    padding: 22px 16px;
    font-weight: 700;
    text-align: center;
    color: #f1f5ff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
    border: 2px solid transparent;
}

/* Hover effect */
.category-tile:hover {
    transform: translateY(-4px);
    border-color: #00ff9c;
    box-shadow: 0 10px 24px rgba(0, 255, 156, 0.35);
}

/*   CATEGORY FLOATING SUBPANEL*/
.category-grid {
    position: relative;
}

.category-float-panel {
    position: absolute;
    min-width: 220px;
    background: rgba(28, 28, 30, 0.95);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 4000;
}

.category-float-panel.visible {
    display: flex;
}

.category-float-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    color: #e5e9ff;
}

.category-float-item:hover {
    background: #00ff9c;
    color: #000;
}

/* =====================================
   RESPONSIVE LAYOUT
===================================== */
/* ---------- TABLET ---------- */
@media (max-width: 1024px) {
    /* Left panel */
    .left-panel {
        width: 220px;
    }

    .game-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        height: 50vh;
    }

    .category-strip {
        grid-template-columns: 1fr;
    }

    .category-info {
        margin-bottom: 20px;
    }
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {

    body, html {
        overflow: hidden;
    }

    /* App layout */
    .app-container {
        flex-direction: column;
    }

    /* Right panel full width */
    .right-panel {
        width: 100%;
        padding: 16px;
    }

    /* HERO */
    .hero {
        height: 42vh;
        clip-path: none;
    }

        .hero h1 {
            font-size: 1.8rem;
        }

        .hero p {
            font-size: 1rem;
        }

    /* Panel nav buttons */
    .panel-nav {
        gap: 1rem;
        flex-wrap: wrap;
    }

        .panel-nav button {
            font-size: 1.2rem;
        }

    /* Game cards grid */
    .game-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Category strip */
    .category-strip {
        grid-template-columns: 1fr;
        margin: 40px 0;
    }

    /* Category tiles */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* All tools rows */
    .all-tools-list {
        justify-content: center;
    }

        .all-tools-list .game-card {
            width: 100%;
/*            max-width: 320px;*/
        }

    /* Floating category panel → full width */
    .category-float-panel {
        left: 50% !important;
        width: calc(100vw - 40px);
        max-width: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* MOBILE MENU OPEN → SHOW LABELS */
    .app-container.menu-open .left-header,
    .app-container.menu-open .search-container,
    .app-container.menu-open .menu button .label {
        opacity: 1 !important;
        width: auto !important;
        pointer-events: auto !important;
        display: flex;
        justify-content: flex-end;
    }

    .mobile-close {
        display: none;
        font-size: 22px;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }

    .app-container.menu-open .mobile-close {
        display: block;
    }

    .app-container.menu-open .mobile-menu-toggle {
        display: none;
    }
    
    /* Align close button properly */
    .left-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/* ---------- SMALL MOBILE ---------- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-close {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

/* =========================
   MOBILE BURGER MENU
========================= */
.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
    padding: 4px 6px;
}


/* ===== DESKTOP: NO BURGER MENU ===== */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 768px) {

    footer.footer-section {
        white-space: normal; /* ✅ allow wrapping */
        padding: 12px 10px;
    }

        footer.footer-section p {
            display: flex;
            flex-wrap: wrap; /* ✅ wrap instead of overlap */
            justify-content: center;
            gap: 6px 10px; /* row / column spacing */
            text-align: center;
            line-height: 1.6;
        }

        footer.footer-section a {
            white-space: nowrap; /* ✅ keep links intact */
        }
}

.footer-section p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
}

.footer-copy {
    width: 100%;
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
}

body {
    font-family: 'Inter', sans-serif;
}
/* ==============================
   ALL CARDS LAYOUT & DESIGN
   Applies to Games + Tools
   ============================== */

/* Grid container for cards */
.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* Individual card styling */
.game-card {
    position: relative;
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    /* Hover effect */
    .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.35);
    }

    /* Card image/banner */
    .game-card img {
        width: 100%;
        max-height: 100px;
        object-fit: contain;
        margin-top: 15px;
    }

/* Info under the image */
.game-info {
    padding: 10px 5px;
    flex-grow: 1;
}

/* Title & subtitle */
.game-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.game-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
}

/* Buttons inside card (if any) */
.view-button, .play-button {
    margin: 8px 0 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    background: #ff3b3f;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease;
}

    .view-button:hover, .play-button:hover {
        background: #e63236;
    }

/* Optional description tooltip */
.game-card .game-description {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: rgba(30,30,30,0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 8px 10px;
    border-radius: 8px;
    z-index: 10;
}

.game-card:hover .game-description {
    display: block;
}


/* =====================================
   EPIC-STYLE PANEL NAV (HERO BELOW)
===================================== */

#all-tools-panel .panel-nav {
    display: flex;
    gap: 28px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    #all-tools-panel .panel-nav button {
        background: none;
        border: none;
        padding: 8px 0;
        cursor: pointer;
        /* Epic Games typography */
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.55);
        position: relative;
        transition: color 0.25s ease;
    }

        /* Hover */
        #all-tools-panel .panel-nav button:hover {
            color: #ffffff;
        }

        /* Active tab */
        #all-tools-panel .panel-nav button.active {
            color: #ffffff;
        }

        /* Epic-style underline */
        #all-tools-panel .panel-nav button::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -14px;
            width: 100%;
            height: 2px;
            background: #ffffff;
            opacity: 0;
            transform: scaleX(0);
            transition: transform 0.25s ease, opacity 0.25s ease;
        }

        #all-tools-panel .panel-nav button.active::after {
            opacity: 1;
            transform: scaleX(1);
        }


/* Ensure submenus collapsed initially */
.submenu {
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    margin-top: 0.25rem;
}

/* Show submenu when active (tapped) */
.menu-item.pinned .submenu {
    display: flex;
}

/* Menu buttons full width */
.menu-item button {
    width: 100%;
    text-align: left;
}

/* RIGHT PANEL */
.right-panel {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    margin: 0; /* remove extra margin causing white patch */
}

/* ===========================
   TABLET
=========================== */
@media (min-width: 600px) {
    .game-list,
    .all-tools-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===========================
   DESKTOP
=========================== */
@media (min-width: 900px) {
    .app-container {
        flex-direction: row; /* side-by-side */
    }

    .left-panel {
        width: 250px;
        flex-shrink: 0;
        height: auto;
    }

    .right-panel {
        width: calc(100% - 250px);
        padding: 1.5rem;
    }

    .game-list,
    .all-tools-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===========================
   LARGE DESKTOP
=========================== */
@media (min-width: 1200px) {
    .game-list,
    .all-tools-list {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* HERO SECTION */
.hero {
    background: #444;
    color: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

    .hero h1 {
        font-size: 1.0rem; /* smaller on mobile */
        margin-bottom: 0.4rem;
        font-weight: 700;
    }

    .hero p {
        font-size: 0.55rem; /* smaller on mobile */
        line-height: 1.3;
    }




/* TABLET */
@media (min-width: 600px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}

/* DESKTOP */
@media (min-width: 900px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* LARGE DESKTOP */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.8rem;
    }
}

/* =====================================
   UNIVERSAL CENTERING FOR CARD LISTS
===================================== */

/* Top All Tools panels */
#all-tools-games-list,
#all-tools-tools-list {
    display: flex;
    justify-content: center;
}

    /* Ensure wrapped game-list is centered */
    #all-tools-games-list .game-list,
    #all-tools-tools-list .game-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

/* Main panels (Games / Tools) */
#games-panel .game-list,
#tools-panel .game-list {
    justify-content: center;
}



/* =========================
   MOBILE LEFT PANEL BELOW HEADER
========================= */
@media (max-width: 768px) {
    .right-panel {
        width: 100%;
        margin-top: 0;
    }
    .left-panel .search-container input {
        width: 100%;
    }
}


/* =========================
   MOBILE: LEFT PANEL BELOW HEADER, ICONS ONLY
========================= */
@media (max-width: 768px) {

    /* Keep panel horizontal below header */
    .left-panel {
/*        position: relative;*/
        width: 100%;
        height: 60px; /* adjust height */
        padding: 0 10px;
        display: flex;
        flex-direction: row;
        justify-content:center;
        align-items: center;
        justify-content: flex-start;
        background: rgba(28,28,30,0.85);
        backdrop-filter: blur(12px);
        overflow-x: auto;
        white-space: nowrap;
        z-index: 1000;
        border-bottom: 1px solid #333;
    }

        /* Menu items inline */
        .left-panel .menu {
            display: flex;
            flex-direction: row;
            gap: 25px; /* spacing between icons */
        }

        .left-panel .menu-item {
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* Buttons: only icon visible */
            .left-panel .menu-item button {
                display: flex;
                align-items: center;
                justify-content: center;
                background: none;
                border: none;
                color: #fff;
                font-size: 20px; /* icon size */
                cursor: pointer;
                gap: 0; /* remove icon-label gap */
            }

                /* Hide labels */
                .left-panel .menu-item button .label {
                    display: none;
                }

        /* Hide search input in horizontal menu */
        .left-panel .search-input-container {
            display: none;
        }

        /* Submenus hidden (mobile clicks open right panel) */
        .left-panel .submenu {
            display: none !important;
        }

    /* Right panel remains unchanged */
    .right-panel {
        width: 100%;
        margin-top: 0;
    }
}

/* =========================
   MOBILE LEFT PANEL - HORIZONTAL CENTER
========================= */
@media (max-width: 768px) {
    .left-panel {
        display: flex;
        justify-content: center; /* center horizontally */
        align-items: center; /* center vertically if needed */
        padding: 10px 0;
        width: 100%; /* full width below header */
        height: auto; /* auto height for horizontal layout */
        background: rgba(28,28,30,0.8);
        backdrop-filter: blur(12px);
        /*top: 20px;*/ /* below header */
        left: 0;
        z-index: 5000;
    }

        /* Hide labels, only show icons */
        .left-panel .menu button .label {
            display: none;
        }

        /* Remove search from mobile */
        .left-panel .menu-item.search-item {
            display: none;
        }
}


@media (max-width: 768px) {

    #all-tools-panel .panel-nav {
        display: flex;
        flex-wrap: nowrap; /* single line */
        justify-content: center; /* natural alignment */
        align-items: center;
        gap: 10px; /* clean spacing */
        padding: 10px 8px;
        overflow: hidden; /* no scrollbar */
    }

        #all-tools-panel .panel-nav button {
            font-size: 11px; /* ONLY real change */
            letter-spacing: 0.1em; /* still premium, not cramped */
            padding: 6px 0;
            white-space: nowrap;
        }

            #all-tools-panel .panel-nav button::after {
                bottom: -8px;
            }
}
@media (max-width: 768px) {

    /* Right panel accounts for collapsed sidebar */
    .app-container.menu-collapsed .right-panel {
        margin-left: 64px;
        width: calc(100% - 64px);
    }

    /* When expanded, sidebar overlays (no push) */
    .app-container:not(.menu-collapsed) .right-panel {
        margin-left: 0;
        width: 100%;
    }
}


@media (max-width: 768px) {
    .menu-item.has-submenu.pinned > .submenu {
        display: flex !important;
    }
}

/* ❌ Disable hover submenu on touch devices */
@media (max-width: 768px) {
    .menu-item.has-submenu:hover .submenu {
        display: none !important;
    }
}



/* Hide search input when panel is collapsed */
.app-container.menu-collapsed .search-input-container {
    display: none;
}

/* Show input when panel is expanded */
.search-input-container {
    margin-top: 4px;
}

    .search-input-container input {
        width: 100%;
        padding: 4px 8px;
        border-radius: 6px;
        border: none;
        background: rgba(255, 255, 255, 0.1); /* optional glass effect */
        color: #fff;
    }

/* Optional: align search icon vertically with other icons */
.menu-item.search-item .icon {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Mobile search input initially hidden */
@media (max-width: 768px) {
    .search-input-container {
        display: none;
    }

        .search-input-container.visible {
            display: inline-block;
            width: calc(100% - 50px); /* adjust as needed */
        }
}


/* =========================
   MOBILE HEADER LOGO & TITLE
========================= */
@media (max-width: 768px) {
    .app-header .header-left .brand-logo {
        width: 35px; /* smaller logo */
        height: auto;
    }

    .app-header .header-left .brand-title {
        font-size: 1.3rem; /* smaller text */
        margin-left: -3px; /* spacing between logo and title */
    }

    /* Optional: reduce header height for mobile */
/*    .app-header {
        height: 50px;
        padding: 5px 12px;
    }*/
}

/* =========================
   MOBILE – SAME CARD SIZE AS DESKTOP
========================= */
@media (max-width: 768px) {

    /* Unified grid */
    .game-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
        justify-items: center;
    }

    /* Unified square card */
    .game-card {
        width: 100%;
        max-width: 180px;
        aspect-ratio: 1 / 1;
    }

    
    /* All Tools (top + rows) */
    #all-tools-games-list .game-card,
    #all-tools-tools-list .game-card,
    .all-tools-list .game-card {
        width: 90%;
        max-width: 180px;
        min-width: unset;
    }

    /* Center horizontal rows */
    #all-tools-games-list .game-list,
    #all-tools-tools-list .game-list {
        justify-content: center;
    }

    /* Image padding consistency */
    .banner-card img {
        object-fit: contain;
        padding: 10px;
    }
}


/* ==========================
   TRUST SECTION
=========================== */
.trust-section {
    background: url('Contents/trust-bg.png') no-repeat center center / cover; /* add your PNG */
    color: #ffffff;
    padding: 80px 20px 150px;
    text-align: center;
    position: relative;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5); /* optional overlay for readability */
    padding: 40px 20px;
    border-radius: 16px;
}

.trust-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.trust-intro {
    font-size: 1.1rem;
    margin-bottom: 50px;
    color: #f0f0f0;
}

.trust-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px 20px;
    flex: 1 1 280px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .trust-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
    }

    .trust-card i {
        font-size: 3rem;
        color: #ffffff;
        margin-bottom: 15px;
    }

    .trust-card h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #ffffff;
    }

    .trust-card p {
        font-size: 1rem;
        color: #f0f0f0;
    }

#trust-section {
    background-image: url('Contents/trust-bg.png'); /* your background image */
    background-size: cover; /* ensures it always fills the section */
    background-position: center; /* keeps it centered */
    background-repeat: no-repeat; /* prevents tiling */
    width: 100%;
    min-height: 400px; /* adjust for desired section height */
    padding: 80px 20px; /* spacing inside section */
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    #trust-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4); /* optional dark overlay for text readability */
        z-index: 0;
    }

.trust-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    text-align: center;
}

.trust-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-card {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 250px;
}


/* ==========================
   TESTIMONIAL SECTION
=========================== */
.testimonial-section {
    background: url('Contents/testimonial-bg.png') no-repeat center center / cover; /* add PNG */
    color: #ffffff;
    padding: 80px 20px 150px;
    text-align: center;
    position: relative;
}

.testimonial-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px 20px;
    border-radius: 16px;
}

.testimonial-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
}

.testimonial-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px 20px;
    flex: 1 1 280px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

    .testimonial-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(255, 255, 255, 0.2);
    }

    .testimonial-card img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin-bottom: 15px;
    }

    .testimonial-card p {
        font-size: 1rem;
        color: #f0f0f0;
        margin-bottom: 10px;
    }

    .testimonial-card h4 {
        font-size: 1.1rem;
        color: #ffffff;
    }

    .testimonial-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4); /* faded overlay between background and cards */
        backdrop-filter: blur(3px); /* blur only for testimonial background */
        z-index: 0;
    }

.testimonial-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: rgba(0,0,0,0.5); /* optional overlay for card readability */
    border-radius: 16px;
    text-align: center;
}


/* Header right area */
.header-right {
    display: flex;
    align-items: center; /* vertical center */
    justify-content: center;
    position: relative;
}


/* Globe button */
.lang-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}


.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px); /* directly below icon */
    right: 0;
    background: #111;
    border-radius: 8px;
    min-width: 140px;
    display: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 7000;
}

    .lang-dropdown button {
        width: 100%;
        background: none;
        border: none;
        color: #fff;
        padding: 10px 14px;
        text-align: left;
        cursor: pointer;
        font-family: inherit;
    }

        .lang-dropdown button:hover {
            background: #1e1e1e;
        }

    /* Show dropdown */
    .lang-dropdown.show {
        display: block;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .lang-dropdown {
        top: 40px;
        right: -5px;
    }
}


html {
    scroll-behavior: smooth;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.brand-link {
    cursor: pointer;
}


@media (max-width: 768px) {
    .panel-nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 10px 8px;
        overflow: hidden; /* prevent scrollbar */
    }

        .panel-nav button {
            font-size: 5.2rem; /* base mobile font */
            letter-spacing: 0.05em;
            padding: 6px 0;
            white-space: nowrap;
            flex-shrink: 0; /* do not shrink automatically, JS will handle */
        }
}


@media (max-width: 768px) {
    .category-strip {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
        text-align: center; /* nice alignment on narrow screens */
    }

    .category-info {
        max-width: 100%;
        margin: 0 auto;
    }

        .category-info h3 {
            font-size: 1.5rem; /* slightly smaller for mobile */
        }

        .category-info p {
            font-size: 1rem; /* easier to read on small screens */
            line-height: 1.5;
            margin: 0 auto;
            max-width: 90%; /* keep text from touching edges */
        }

    .category-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        width: 100%;
    }

    .category-tile {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        cursor: pointer;
        transition: transform 0.2s ease, background 0.2s ease;
        text-align: center;
    }

        .category-tile:hover {
            transform: translateY(-3px);
            background: rgba(255, 255, 255, 0.1);
        }
}


