/* ============================================
   HOLIDY CENTRAL - Main Stylesheet
   ============================================ */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent-color: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.5);
    --bg-dark: #0a0a0f;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-color: rgba(99, 102, 241, 0.2);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #13131a 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   ANIMATED STARFIELD BACKGROUND
   ============================================ */

.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: -1;
}

.stars {
    background: #000 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle fill="%23FFF" cx="25" cy="25" r="1"/><circle fill="%23FFF" cx="75" cy="42" r="0.5"/><circle fill="%23FFF" cx="125" cy="15" r="0.8"/><circle fill="%23FFF" cx="175" cy="65" r="0.6"/><circle fill="%23FFF" cx="50" cy="90" r="1"/><circle fill="%23FFF" cx="100" cy="75" r="0.4"/><circle fill="%23FFF" cx="150" cy="100" r="0.7"/><circle fill="%23FFF" cx="25" cy="125" r="0.5"/><circle fill="%23FFF" cx="80" cy="150" r="1"/><circle fill="%23FFF" cx="130" cy="135" r="0.6"/><circle fill="%23FFF" cx="180" cy="160" r="0.8"/><circle fill="%23FFF" cx="45" cy="180" r="0.4"/><circle fill="%23FFF" cx="95" cy="195" r="0.7"/><circle fill="%23FFF" cx="160" cy="185" r="1"/></svg>') repeat;
    background-size: 200px 200px;
    opacity: 0.5;
}

.twinkling {
    background: transparent url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 300"><circle fill="%23FFF" cx="50" cy="50" r="1.5" opacity="0.8"/><circle fill="%23FFF" cx="150" cy="100" r="1" opacity="0.6"/><circle fill="%23FFF" cx="250" cy="75" r="1.2" opacity="0.7"/><circle fill="%23FFF" cx="100" cy="200" r="0.8" opacity="0.9"/><circle fill="%23FFF" cx="200" cy="250" r="1.3" opacity="0.5"/></svg>') repeat;
    background-size: 300px 300px;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo h1 span {
    font-weight: 400;
    opacity: 0.8;
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.portal-btn {
    background: var(--gradient-primary);
    color: var(--text-primary) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.portal-btn:hover {
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-primary);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ============================================
   GAMES SECTION
   ============================================ */

.games-section {
    padding: 6rem 3rem;
    background: var(--gradient-dark);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

.game-card {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.game-card.featured {
    grid-column: span 2;
    height: 350px;
}

.game-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

/* Game-specific backgrounds using promotional art */
.dune-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/1172710/header.jpg') center/cover no-repeat;
}
.ark-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/346110/header.jpg') center/cover no-repeat;
}
.conan-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/440900/header.jpg') center/cover no-repeat;
}
.palworld-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/1623730/header.jpg') center/cover no-repeat;
}
.minecraft-bg {
    background: url('https://www.minecraft.net/content/dam/games/minecraft/key-art/MC-Vanilla-KeyArt_600x360.jpg') center/cover no-repeat,
                linear-gradient(135deg, #7cb342 0%, #558b2f 50%, #33691e 100%);
}
.valheim-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/892970/header.jpg') center/cover no-repeat;
}
.enshrouded-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/1203620/header.jpg') center/cover no-repeat;
}
.abiotic-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/427410/header.jpg') center/cover no-repeat;
}
.icarus-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/1149460/header.jpg') center/cover no-repeat;
}
.starrupture-bg {
    background: linear-gradient(135deg, #7c4dff 0%, #651fff 50%, #6200ea 100%);
}
.ats-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/270880/header.jpg') center/cover no-repeat;
}
.ets2-bg {
    background: url('https://cdn.cloudflare.steamstatic.com/steam/apps/227300/header.jpg') center/cover no-repeat;
}
.hytale-bg {
    background: url('https://hytale.com/static/images/wallpaper-1.jpg') center/cover no-repeat,
                linear-gradient(135deg, #66bb6a 0%, #388e3c 50%, #1b5e20 100%);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.game-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.game-status.online .status-dot {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.game-status.beta .status-dot {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
}

.game-status.offline .status-dot {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.game-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.game-action {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.game-card:hover .game-action {
    color: var(--primary-light);
}

/* Game Stats */
.game-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Status text variations */
.game-status.loading .status-dot {
    background: var(--warning);
    box-shadow: 0 0 10px var(--warning);
    animation: pulse 1s infinite;
}

.game-status.offline .status-dot {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger);
    animation: none;
}

.game-status.offline .status-text {
    color: var(--danger);
}

.game-status.online .status-text {
    color: var(--success);
}

.game-status.beta .status-text {
    color: var(--warning);
}

/* ============================================
   STATUS SECTION
   ============================================ */

.status-section {
    padding: 6rem 3rem;
    background: var(--bg-dark);
}

.status-summary {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 3rem;
    text-align: center;
    min-width: 200px;
    transition: all 0.3s ease;
}

.status-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.status-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-number.online-text {
    color: var(--success);
    -webkit-text-fill-color: var(--success);
}

.status-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* ============================================
   COMMUNITY SECTION
   ============================================ */

.community-section {
    padding: 6rem 3rem;
    background: var(--gradient-dark);
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 3rem;
    text-align: center;
    text-decoration: none;
    min-width: 250px;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.community-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.community-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.community-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 3rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-brand h3 span {
    font-weight: 400;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .game-card.featured {
        grid-column: span 1;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .games-section,
    .status-section,
    .community-section {
        padding: 4rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .status-summary,
    .community-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .game-card {
        height: 240px;
    }
}
