:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-color: #ffffff;
    --text-secondary: #a8a8a8;
    --border-color: #2a2a3e;
    --success-color: #00d9ff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

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

/* Navigation */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background: rgba(233, 69, 96, 0.1);
}

.btn-discord {
    background: #5865f2;
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s;
}

.btn-discord:hover {
    transform: translateY(-2px);
    background: #4752c4;
}

.btn-login {
    background: var(--accent-color);
    padding: 0.6rem 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    background: #d63851;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(26, 26, 46, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><rect fill="%231a1a2e" width="1000" height="1000"/><g fill-opacity="0.05"><circle fill="%23fff" cx="500" cy="500" r="400"/><circle fill="%23fff" cx="500" cy="500" r="300"/><circle fill="%23fff" cx="500" cy="500" r="200"/></g></svg>');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    margin-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    margin: 1rem auto;
}

/* Twitch Stream */
.twitch-container {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 2px solid var(--border-color);
    display: none;
}

.twitch-container.active {
    display: block;
}

.twitch-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.twitch-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Matches Section */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.match-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.match-tournament {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.match-date {
    font-size: 0.85rem;
    color: var(--success-color);
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.team {
    font-size: 1.2rem;
    font-weight: bold;
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.match-map {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.member-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 3px solid var(--accent-color);
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.member-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.member-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s;
}

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

/* CS2 Section */
.cs2-section {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    border: 2px solid var(--border-color);
    margin-top: 3rem;
}

.cs2-logo {
    max-width: 300px;
    margin-bottom: 2rem;
}

.btn-steam {
    display: inline-block;
    background: #171a21;
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s, background 0.3s;
}

.btn-steam:hover {
    transform: translateY(-2px);
    background: #1b2838;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 2px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .matches-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
