/* ==========================================================
   TeraChamp - Game Station (Final Master Stylesheet)
   Theme: Deep Navy, Neon Blue, Electric Purple & Cyber Yellow
   ========================================================== */

:root {
    --tc-bg-deep: #060914;
    --tc-bg-surface: #0D1326;
    --tc-bg-card: #121A33;
    --tc-bg-card-hover: #172242;
    --tc-navy-border: rgba(0, 229, 255, 0.16);

    --tc-neon-blue: #00E5FF;
    --tc-neon-blue-glow: rgba(0, 229, 255, 0.35);
    --tc-purple: #8B5CF6;
    --tc-purple-dark: #5B21B6;
    --tc-purple-glow: rgba(139, 92, 246, 0.35);
    --tc-yellow: #FACC15;
    --tc-yellow-hover: #EAB308;

    --tc-text-primary: #F1F5F9;
    --tc-text-muted: #94A3B8;
}

body.tc-body {
    background-color: var(--tc-bg-deep);
    background-image:
        radial-gradient(circle at 12% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 38%),
        radial-gradient(circle at 88% 15%, rgba(0, 229, 255, 0.10) 0%, transparent 35%);
    color: var(--tc-text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Typography & Brand */
.tc-brand-title,
.tc-display-font {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.04em;
}

.tc-brand-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #FFFFFF;
}

.tc-brand-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--tc-yellow);
}

.tc-logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tc-purple) 0%, #2563EB 100%);
    color: #FFFFFF;
    font-size: 1.35rem;
    box-shadow: 0 0 16px var(--tc-purple-glow);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tc-text-neon {
    color: var(--tc-neon-blue);
}

.tc-text-purple {
    color: var(--tc-purple);
}

.tc-text-yellow {
    color: var(--tc-yellow);
}

/* Navbar */
.tc-navbar {
    background: rgba(9, 14, 30, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tc-navy-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.tc-nav-link {
    color: var(--tc-text-muted) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tc-nav-link:hover,
.tc-nav-link.active {
    color: var(--tc-neon-blue) !important;
    background: rgba(0, 229, 255, 0.08);
}

.tc-badge-soon {
    font-size: 0.62rem;
    background: rgba(139, 92, 246, 0.22);
    color: #C4B5FD;
    border: 1px solid rgba(139, 92, 246, 0.45);
    font-weight: 600;
}

/* Language Switcher */
.tc-lang-switcher .btn {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.28rem 0.65rem;
}

.tc-lang-btn {
    background: var(--tc-bg-card);
    color: var(--tc-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tc-lang-btn:hover {
    color: #FFFFFF;
    border-color: var(--tc-neon-blue);
}

.tc-lang-active {
    background: var(--tc-neon-blue);
    color: #050914;
    border: 1px solid var(--tc-neon-blue);
}

/* Buttons */
.tc-btn-yellow {
    background-color: var(--tc-yellow);
    color: #090D16;
    border: none;
    transition: all 0.2s ease;
}

.tc-btn-yellow:hover {
    background-color: var(--tc-yellow-hover);
    color: #050811;
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.4);
    transform: translateY(-1px);
}

.tc-btn-neon {
    background: linear-gradient(90deg, #00B4D8 0%, var(--tc-neon-blue) 100%);
    color: #050914;
    font-weight: 700;
    border: none;
    transition: all 0.2s ease;
}

.tc-btn-neon:hover {
    box-shadow: 0 0 20px var(--tc-neon-blue-glow);
    color: #02050B;
    transform: translateY(-1px);
}

.tc-btn-outline-neon {
    color: var(--tc-neon-blue);
    border: 1px solid rgba(0, 229, 255, 0.45);
    background: rgba(0, 229, 255, 0.04);
    font-weight: 600;
    transition: all 0.2s ease;
}

.tc-btn-outline-neon:hover {
    background: var(--tc-neon-blue);
    color: #050914;
    box-shadow: 0 0 16px var(--tc-neon-blue-glow);
}

/* Hero Banner */
.tc-hero {
    background: linear-gradient(135deg, #0E1630 0%, #17153B 55%, #0B1124 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.tc-hero::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -10%;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.tc-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    background: rgba(250, 204, 21, 0.12);
    color: var(--tc-yellow);
    border: 1px solid rgba(250, 204, 21, 0.35);
}

/* Filter & Search Control Bar */
.tc-filter-bar {
    background: var(--tc-bg-surface);
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.tc-select {
    background-color: #080D1E !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    color: #F8FAFC !important;
    font-size: 0.88rem;
}

.tc-select:focus {
    border-color: var(--tc-neon-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.18) !important;
}

/* Category Pills */
.tc-cat-pill {
    background: var(--tc-bg-card);
    color: var(--tc-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.42rem 0.9rem;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tc-cat-pill:hover,
.tc-cat-pill.active {
    background: rgba(139, 92, 246, 0.22);
    color: #FFFFFF;
    border-color: var(--tc-purple);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.28);
}

/* Game Cards */
.tc-game-card {
    background: var(--tc-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tc-game-card:hover {
    transform: translateY(-6px);
    background: var(--tc-bg-card-hover);
    border-color: rgba(0, 229, 255, 0.55);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 229, 255, 0.18);
}

.tc-game-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #090E20;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tc-game-thumb-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.tc-game-card:hover .tc-game-thumb-img {
    transform: scale(1.06);
}

.tc-game-cat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(6, 9, 20, 0.85);
    backdrop-filter: blur(6px);
    color: var(--tc-neon-blue);
    border: 1px solid rgba(0, 229, 255, 0.35);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.22rem 0.6rem;
    border-radius: 6px;
    z-index: 2;
}

.tc-game-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
    border-radius: 6px;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.tc-status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
    border: 1px solid rgba(16, 185, 129, 0.45);
}

.tc-status-soon {
    background: rgba(250, 204, 21, 0.18);
    color: var(--tc-yellow);
    border: 1px solid rgba(250, 204, 21, 0.45);
}

.tc-status-maint {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.tc-featured-ribbon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(90deg, var(--tc-purple), #4F46E5);
    color: #FFFFFF;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 5px;
    letter-spacing: 0.04em;
    z-index: 2;
}

.tc-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* Pagination */
.tc-pagination .page-link {
    background-color: var(--tc-bg-card);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--tc-text-primary);
    font-weight: 600;
    font-size: 0.86rem;
    padding: 0.45rem 0.85rem;
}

.tc-pagination .page-link:hover {
    background-color: rgba(0, 229, 255, 0.14);
    border-color: var(--tc-neon-blue);
    color: var(--tc-neon-blue);
}

.tc-pagination .page-item.active .page-link {
    background: linear-gradient(90deg, var(--tc-purple), #2563EB);
    border-color: var(--tc-neon-blue);
    color: #FFFFFF;
    box-shadow: 0 0 14px var(--tc-purple-glow);
}

.tc-pagination .page-item.disabled .page-link {
    background-color: rgba(13, 19, 38, 0.5);
    border-color: rgba(255, 255, 255, 0.05);
    color: #475569;
}

/* Ad Slots Styling */
.tc-ad-slot {
    background: rgba(13, 19, 38, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    padding: 0.65rem;
    position: relative;
}

.tc-ad-tag {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--tc-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.12rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.45rem;
}

.tc-ad-banner-top {
    max-width: 970px;
}

.tc-ad-placeholder-box {
    min-height: 82px;
    background: rgba(6, 9, 20, 0.55);
    border-radius: 8px;
    padding: 0.75rem;
}

.tc-ad-placeholder-square {
    min-height: 230px;
    background: rgba(6, 9, 20, 0.55);
    border-radius: 8px;
    padding: 1rem;
}

.tc-ad-placeholder-tall {
    min-height: 320px;
    background: rgba(6, 9, 20, 0.55);
    border-radius: 8px;
    padding: 1rem;
}

/* Play Page Iframe Container & Loader */
.tc-iframe-stage {
    background: #04060E;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.65);
}

.tc-iframe-responsive-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 360px;
    background: #04060E;
}

@media (max-width: 575.98px) {
    .tc-iframe-responsive-box {
        aspect-ratio: 4 / 3;
        min-height: 320px;
    }
}

.tc-iframe-responsive-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.tc-iframe-loader {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #0F172A 0%, #050814 100%);
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tc-iframe-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#tcGameStage:fullscreen,
#tcGameStage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tcGameStage:fullscreen .tc-iframe-responsive-box,
#tcGameStage:-webkit-full-screen .tc-iframe-responsive-box {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

/* Auth, Google OAuth & User Dropdown */
.tc-panel {
    background: var(--tc-bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.tc-input {
    background-color: #080D1E !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    color: #F8FAFC !important;
}

.tc-input:focus {
    border-color: var(--tc-neon-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.18) !important;
}

.tc-btn-google {
    background-color: #FFFFFF;
    color: #0F172A;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.tc-btn-google:hover {
    background-color: #F8FAFC;
    color: #020617;
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.45);
    transform: translateY(-2px);
}

.tc-user-dropdown-btn {
    background: var(--tc-bg-card);
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 999px;
    transition: all 0.2s ease;
}

.tc-user-dropdown-btn:hover,
.tc-user-dropdown-btn[aria-expanded="true"] {
    background: var(--tc-bg-card-hover);
    border-color: var(--tc-neon-blue);
    box-shadow: 0 0 14px var(--tc-neon-blue-glow);
}

.tc-nav-avatar {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border: 1.5px solid var(--tc-neon-blue);
}

.tc-dropdown-menu {
    background-color: #0D1326;
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 12px;
    min-width: 230px;
}

.tc-dropdown-item {
    color: var(--tc-text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.tc-dropdown-item:hover {
    background-color: rgba(0, 229, 255, 0.1);
    color: #FFFFFF;
}

.tc-profile-avatar-lg {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border: 3px solid var(--tc-neon-blue);
    box-shadow: 0 0 20px var(--tc-neon-blue-glow);
}

/* Footer */
.tc-footer {
    background: #050812;
    border-top: 1px solid var(--tc-navy-border);
}

.tc-footer-heading {
    color: var(--tc-yellow);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.tc-footer-link {
    color: var(--tc-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tc-footer-link:hover {
    color: var(--tc-neon-blue);
}