/* assets/style.css - WDL AAA Launcher & Store UI */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-base: #06080c;
    --bg-sidebar: #0a0d14;
    --bg-surface: #101521;
    --bg-surface-hover: #161d2e;
    
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(99, 102, 241, 0.45);
    
    --primary: #6366f1;
    --primary-bright: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.3);
    
    --emerald: #10b981;
    --crimson: #ef4444;
    
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --text-dark: #64748b;
    
    --sidebar-width: 260px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Linke Sidebar (Launcher-Look) */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 1.75rem 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 0.5rem 2rem 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.75rem;
    text-decoration: none;
}

.brand-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-white);
}

.brand-text span {
    color: var(--primary-bright);
}

.nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-dark);
    font-weight: 700;
    margin: 0 0 0.75rem 0.75rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--text-white);
}

.nav-link.active {
    border-left: 3px solid var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.user-pill {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hauptbereich rechts */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: calc(100vw - var(--sidebar-width));
}

@media (max-width: 950px) {
    .sidebar { width: 100%; position: relative; height: auto; border-right: none; border-bottom: 1px solid var(--border-subtle); }
    .main-content { margin-left: 0; max-width: 100%; padding: 1.5rem; }
    body { flex-direction: column; }
}

/* Featured Spotlight Banner */
.spotlight {
    background: linear-gradient(95deg, #111827 0%, rgba(16, 21, 33, 0.85) 55%, rgba(99, 102, 241, 0.18) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.spotlight::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.spotlight-tag {
    display: inline-block;
    background: rgba(99, 102, 241, 0.18);
    color: var(--primary-bright);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    margin-bottom: 1rem;
}

.spotlight h1 {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.spotlight p {
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.4px;
}

/* Game & Software Cards Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3rem;
}

.game-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-accent);
    background: var(--bg-surface-hover);
    box-shadow: 0 18px 35px -12px rgba(0, 0, 0, 0.75);
}

.game-thumb-wrap {
    position: relative;
    width: 100%;
    height: 185px;
    background: #080b11;
    overflow: hidden;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.05);
}

.game-type-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(6, 8, 12, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-subtle);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--text-white);
}

.game-version-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.game-desc {
    color: var(--text-gray);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
    flex: 1;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

/* News Feed Leiste */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.35rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--primary-bright);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Buttons & Forms */
.btn {
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 0.7rem 1.35rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.84rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.card-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

input, textarea, select {
    width: 100%;
    background: #070a10;
    border: 1px solid var(--border-subtle);
    color: var(--text-white);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-top: 0.4rem;
    margin-bottom: 1.25rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-gray);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-dark);
}