/* Header */
.header {
    text-align: center;
    padding: 20px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.6s ease-out;
}

.header h1 {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #667eea 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header p {
    font-size: 0.95em;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.header a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.header a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #667eea;
    transition: width 0.3s ease;
}

.header a:hover::after {
    width: 100%;
}

/* Online Status */
.online-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

.online-indicator {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Latest Battle */
.latest-battle {
    text-align: center;
}

.latest-battle h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.winner-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 10px 0;
}

.winner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.winner-avatar:hover {
    transform: scale(1.1);
    border-color: #667eea;
}

.winner-display div {
    text-align: left;
}

.winner-display h2 {
    font-size: 1.35em;
    font-weight: 700;
    margin-bottom: 6px;
}

.winner-display p {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

/* Search Section */
.search-section {
    text-align: center;
}

.search-section h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 8px;
}

.search-section p {
    font-size: 0.95em;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.search-section input {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border: 2px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    margin: 12px 0;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.search-section input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-section input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Stats Display */
.stats-display {
    display: none;
    animation: scaleIn 0.3s ease-out;
}

.stats-display h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.stats-display p {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 500;
}

.stats-display strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desktop-demo-btn {
    display: inline-flex;
}

.mobile-arena-controls {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

/* Theme Controls */
.theme-controls, .speed-controls {
    text-align: center;
}

.theme-controls h4, .speed-controls h4 {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 12px;
}

.theme-btn, .speed-btn {
    padding: 10px 18px;
    margin: 4px;
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.theme-btn.active, .speed-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: scale(1.05);
}

.theme-btn:hover, .speed-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Footer */
footer {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
    animation: fadeIn 1s ease-out 0.5s backwards;
}
