/* Global Reset and Variables */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #ef4444; /* Pokemon Red */
    --primary-glow: rgba(239, 68, 68, 0.5);
    --secondary: #3b82f6; /* Water Blue */
    --accent: #eab308; /* Pikachu Yellow */
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 50px;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('assets/bg.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    margin-top: 5rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-title span {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #22c55e;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: absolute;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    bottom: -60px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: -40px;
}

/* Feature Grid */
.features {
    padding: 6rem 0;
    background: var(--bg-darker);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ef4444, #eab308);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.2);
}

.wild-encounters { background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 0 20px rgba(16, 185, 129, 0.4); }
.gym-challenges { background: linear-gradient(135deg, #ef4444, #dc2626); box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
.player-economy { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 0 20px rgba(245, 158, 11, 0.4); }
.custom-mods { background: linear-gradient(135deg, #8b5cf6, #6d28d9); box-shadow: 0 0 20px rgba(139, 92, 246, 0.4); }

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Lower Section: News & Leaderboard */
.lower-section {
    padding: 4rem 0 6rem;
    background: var(--bg-darker);
}

.grids-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: transform 0.3s;
    cursor: pointer;
}

.news-item:hover {
    transform: translateX(10px);
    border-color: var(--secondary);
}

.news-date {
    font-weight: 800;
    color: var(--secondary);
    font-size: 1.1rem;
    text-align: center;
    min-width: 100px;
    border-right: 1px solid var(--glass-border);
    padding-right: 1.5rem;
}

.news-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.news-content p {
    color: var(--text-muted);
}

/* Leaderboard */
.leaderboard {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.player-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.player-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.player-item.rank-1 {
    background: linear-gradient(to right, rgba(234, 179, 8, 0.1), transparent);
    border-left: 4px solid var(--accent);
}

.player-item.rank-2 {
    background: linear-gradient(to right, rgba(148, 163, 184, 0.1), transparent);
    border-left: 4px solid #cbd5e1;
}

.player-item.rank-3 {
    background: linear-gradient(to right, rgba(180, 83, 9, 0.1), transparent);
    border-left: 4px solid #d97706;
}

.rank {
    font-weight: 900;
    color: var(--text-muted);
    width: 30px;
}

.player-item.rank-1 .rank { color: var(--accent); }
.player-item.rank-2 .rank { color: #cbd5e1; }
.player-item.rank-3 .rank { color: #d97706; }

.player-head {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    image-rendering: pixelated;
}

.player-name {
    font-weight: 700;
    flex-grow: 1;
}

.player-score {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 40px;
    filter: grayscale(1) brightness(2);
    opacity: 0.8;
}

.footer-brand h2 {
    font-weight: 900;
    letter-spacing: 2px;
    color: #cbd5e1;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

.host-info {
    margin: 1rem 0;
    font-weight: 700;
}

.host-info .host {
    color: #3b82f6;
}

.disclaimer {
    font-size: 0.8rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .grids-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}
