/* Self-Hosted Fonts */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-v20-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-v20-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-v20-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/orbitron-v35-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/orbitron-v35-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/orbitron-v35-latin-700.woff2') format('woff2'); }

:root { 
    --menu-width: 200px; 
    --accent-color: #00C9FF; 
    --bg-main: #0f172a; 
    --bg-card: #1e293b; 
    --border-color: #334155; 
    --text-color: #f8fafc; 
    --text-muted: #94a3b8; 
}

html { height: 100%; width: 100%; overflow-x: hidden; }
body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--bg-main); 
    background-image: radial-gradient(circle at top center, rgba(0, 201, 255, 0.05) 0%, transparent 60%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10"><rect width="10" height="10" fill="%230f172a"/><path d="M0 0L10 10M10 0L0 10" stroke="%231e293b" stroke-width="0.2"/></svg>'); 
    min-height: 100vh; 
    margin: 0; padding: 0; 
    box-sizing: border-box; 
    color: var(--text-color); 
    display: flex; flex-direction: row; 
    -webkit-tap-highlight-color: transparent;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Sidebar Navigation */
.left-menu { width: var(--menu-width); min-width: var(--menu-width); height: 100vh; position: fixed; top: 0; left: 0; background: rgba(10, 10, 10, 0.95); box-shadow: 2px 0 15px rgba(0, 0, 0, 0.5); padding: 0 20px; box-sizing: border-box; z-index: 1001; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.left-menu ul { list-style: none; padding: 0; margin: 0; }
.left-menu li { margin-bottom: 20px; }
.left-menu a { font-family: 'Orbitron', sans-serif; font-size: 24px; font-weight: 600; color: var(--accent-color); text-decoration: none; text-shadow: 0 0 2px var(--accent-color); display: block; padding: 8px 0; transition: all 0.3s ease; }
.left-menu a:hover, .left-menu a:focus { color: #fff; text-shadow: 0 0 8px #fff, 0 0 12px rgba(255, 255, 255, 0.5); outline: none; transform: translateX(5px); }
.left-menu a.active-page-link { color: #fff; text-shadow: 0 0 8px #fff, 0 0 12px rgba(255, 255, 255, 0.7); background-color: rgba(0, 190, 255, 0.15); border-radius: 8px; padding-left: 15px; padding-right: 15px; }

/* Main Content Layout */
.mobile-header, .menu-overlay { display: none; }
.main-content-wrapper { flex-grow: 1; padding-left: calc(var(--menu-width) + 40px); padding-top: 40px; padding-right: 40px; padding-bottom: 40px; display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; width: calc(100% - var(--menu-width)); }
.page-container { width: 100%; max-width: 1400px; margin: 0 auto; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 2rem; }
.breadcrumbs ol { display: flex; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--text-muted); font-weight: 600;}
.breadcrumbs li:not(:last-child)::after { content: '>'; margin: 0 0.75rem; color: var(--border-color); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent-color); }

/* Hero Section */
.hero-section { text-align: center; margin-bottom: 3rem; }
.hero-section h1 { font-family: 'Orbitron', sans-serif; color: #fff; margin: 0 0 15px 0; text-shadow: 0 0 15px rgba(0, 201, 255, 0.6), 0 0 5px var(--accent-color); font-size: 3.5rem; letter-spacing: 1px; line-height: 1.1;}
.intro-text { max-width: 700px; margin: 0 auto; font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; }

/* Arcade Grid (Highly Addictive Visuals) */
.thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; width: 100%; margin-bottom: 40px; }

/* Individual Game Cards */
.thumbnail-container { 
    background-color: var(--bg-card); 
    border-radius: 16px; 
    cursor: pointer; 
    border: 1px solid var(--border-color); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); 
    overflow: hidden; 
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.thumbnail-container:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 201, 255, 0.2); 
    border-color: var(--accent-color);
}

.thumbnail-image-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background-color: #000; position: relative; }
.thumbnail-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease; filter: brightness(0.9); }

.thumbnail-container:hover .thumbnail-image-wrapper img { transform: scale(1.08); filter: brightness(1.1); }

/* Card Content / Typography */
.thumbnail-content {
    background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(30, 41, 59, 1) 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.thumbnail-text { font-family: 'Orbitron', sans-serif; color: #fff; font-size: 1.15rem; font-weight: 700; margin: 0; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.play-badge { background-color: rgba(0, 201, 255, 0.15); color: var(--accent-color); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; letter-spacing: 0.5px; border: 1px solid rgba(0, 201, 255, 0.3); transition: background-color 0.3s ease, color 0.3s ease; }

.thumbnail-container:hover .play-badge { background-color: var(--accent-color); color: #000; box-shadow: 0 0 10px rgba(0, 201, 255, 0.5); }

/* Suggestions Section */
.suggest-tool-section { width: 100%; text-align: center; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border-color); } 
.suggest-tool-section h3 { font-family: 'Orbitron', sans-serif; color: var(--accent-color); font-size: 1.5rem; margin: 0 0 0.5rem 0; } 
.suggest-tool-section p { color: var(--text-muted); font-size: 1rem; margin: 0;} 
.suggest-tool-section a { color: #38bdf8; text-decoration: none; font-weight: 600; transition: color 0.2s ease;}
.suggest-tool-section a:hover { color: #fff; text-decoration: underline; }
.seo-divider {
    border: 1px solid var(--border-color); /* Uses your existing variable */
    margin: 20px 0;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    :root { --menu-width: 260px; }
    body { flex-direction: column; padding: 0; }
    body.menu-open { overflow: hidden; }
    .main-content-wrapper { padding: 90px 15px 40px 15px; width: 100%; }
    
    .mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 65px; background-color: rgba(15, 23, 42, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box; }
    .hamburger-btn { background: none; border: none; padding: 10px; margin-left: -10px; cursor: pointer; z-index: 1002; }
    .hamburger-btn .line { display: block; width: 24px; height: 3px; background-color: #f8fafc; margin: 5px 0; border-radius: 3px; transition: transform 0.3s ease, opacity 0.3s ease; }
    .mobile-title { font-family: 'Orbitron', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--accent-color); text-shadow: 0 0 8px rgba(0, 201, 255, 0.5);}
    
    .left-menu { transform: translateX(-100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); height: 100vh; width: var(--menu-width); min-width: var(--menu-width); }
    .left-menu.menu-open { transform: translateX(0); }
    .menu-overlay { display: block; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .menu-overlay.menu-open { opacity: 1; pointer-events: auto; }
    
    .hero-section { margin-bottom: 2rem; }
    .hero-section h1 { font-size: 2.2rem; }
    .intro-text { font-size: 1rem; }
    
    .thumbnail-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; } 
    .thumbnail-content { padding: 12px 10px; flex-direction: column; align-items: flex-start; gap: 8px;}
    .thumbnail-text { font-size: 1rem; }
    .play-badge { font-size: 0.7rem; align-self: flex-start;}
}