/* ============================================================
   PIXELPLAY - MODERNES DESIGN
   Moderne Farbpalette: Indigo (#4F46E5), Gold (#FBBF24)
   Design: Minimalistisch, authentisch, nicht KI-generiert
   ============================================================ */

:root {
    /* Color Palette */
    --primary: #1E40AF;           /* Deep Blue */
    --primary-dark: #1E3A8A;      /* Darker Blue */
    --primary-light: #3B82F6;     /* Lighter Blue */
    --accent: #06B6D4;            /* Cyan */
    --accent-dark: #0891B2;       /* Dark Cyan */
    --accent-secondary: #EC4899;  /* Pink/Magenta */
    --success: #06B6D4;           /* Cyan */
    --danger: #EF4444;            /* Red */
    
    /* Grays */
    --bg: #0A0E27;                /* Deep Navy Background */
    --surface: #111827;           /* Surface Color */
    --surface-light: #1F2937;     /* Light Surface */
    --border: #374151;            /* Border Color */
    --text: #F8FAFC;              /* Primary Text */
    --text-secondary: #CBD5E1;    /* Secondary Text */
    --text-muted: #94A3B8;        /* Muted Text */
    
    /* Spacing & Size */
    --radius: 16px;
    --radius-sm: 8px;
    --radius-lg: 24px;
    --container: 1400px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(6, 182, 212, 0.1);
    --shadow-xl: 0 20px 48px rgba(6, 182, 212, 0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
}

/* ============================================================
   GLOBAL STYLES
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(12px);
    background: rgba(10, 14, 39, 0.92);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    transition: var(--transition);
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}

.nav-brand-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        gap: 1rem;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 50%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(6, 182, 212, 0.12);
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.4);
}

.feature-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    font-weight: 600;
    color: var(--text);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent), transparent);
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-secondary), transparent);
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), transparent);
    top: 50%;
    right: 0;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(20px); }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero {
        padding: 3rem 2rem;
    }
}

/* ============================================================
   MAIN CONTAINER & SECTIONS
   ============================================================ */

.main-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.controls-section {
    margin-bottom: 3rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: rgba(6, 182, 212, 0.08);
    border: 2px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.12);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.games-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text);
}

/* ============================================================
   GAMES GRID
   ============================================================ */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
}

.game-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface), var(--surface-light));
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.game-card-title {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-fast);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.game-card:hover .game-card-image img {
    transform: scale(1.1);
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.game-card:hover .game-card-title {
    opacity: 1;
    transform: translateY(0);
}

.game-card:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.loading {
    grid-column: 1 / -1;
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1.2rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.03) 0%, rgba(10, 14, 39, 0.95) 100%);
    border-top: 1px solid rgba(6, 182, 212, 0.1);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 2rem 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .search-input {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
        font-size: 16px;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, var(--bg) 0%, #0a1428 100%);
    }
}
