/* KOF Ultimate Online - Styles */

:root {
    --primary: #00d4ff;
    --secondary: #1e3a8a;
    --background: #0a0e27;
    --surface: #16213e;
    --accent: #0f3460;
    --success: #00ff88;
    --error: #ff0055;
    --warning: #ffaa00;
    --text: #ffffff;
    --text-secondary: #c8d3f5;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 50%, #1e3a8a 100%);
    opacity: 0.9;
}

.background-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-50px, -50px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: rgba(30, 58, 138, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2em;
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--primary);
    color: var(--background);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6)); }
}

.hero-description {
    font-size: 1.3em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #0099cc);
    color: var(--background);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: rgba(30, 58, 138, 0.5);
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 60px 0;
}

.stat-card {
    background: rgba(30, 58, 138, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.stat-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.stat-value {
    font-size: 3em;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

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

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* Features */
.features {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(30, 58, 138, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: 60px 0;
}

.download-card {
    background: rgba(30, 58, 138, 0.3);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.download-card h3 {
    color: var(--primary);
    font-size: 2em;
    margin-bottom: 30px;
}

.install-steps {
    list-style: none;
    counter-reset: step;
}

.install-steps li {
    counter-increment: step;
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
}

.install-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    color: var(--background);
}

.install-steps strong {
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
    font-size: 1.2em;
}

.install-steps code {
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--success);
    font-family: 'Courier New', monospace;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Leaderboard Preview */
.top-players {
    padding: 60px 0;
    text-align: center;
}

.leaderboard-preview {
    background: rgba(30, 58, 138, 0.3);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    min-height: 200px;
}

.loading {
    padding: 60px;
    color: var(--text-secondary);
    font-size: 1.2em;
}

/* Footer */
.main-footer {
    background: rgba(30, 58, 138, 0.5);
    margin-top: 80px;
    padding: 40px 0 20px;
    border-top: 2px solid var(--primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.online {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: blink 2s ease-in-out infinite;
}

.status-indicator.offline {
    background: var(--error);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 20px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
