/* CSS Variables - Light Mode */
:root {
    --background: hsl(0, 0%, 98%);
    --foreground: hsl(240, 10%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(240, 10%, 15%);
    --border: hsl(240, 6%, 88%);
    --primary: hsl(25, 95%, 53%);
    --primary-foreground: hsl(0, 0%, 100%);
    --accent: hsl(195, 100%, 50%);
    --accent-foreground: hsl(0, 0%, 100%);
    --success: hsl(142, 76%, 36%);
    --muted-foreground: hsl(240, 5%, 45%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);
}

/* CSS Variables - Dark Mode */
.dark {
    --background: hsl(12, 8%, 8%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(240, 6%, 12%);
    --card-foreground: hsl(0, 0%, 98%);
    --border: hsl(240, 6%, 18%);
    --primary: hsl(25, 95%, 53%);
    --primary-foreground: hsl(0, 0%, 100%);
    --accent: hsl(195, 100%, 50%);
    --accent-foreground: hsl(0, 0%, 100%);
    --success: hsl(142, 76%, 45%);
    --muted-foreground: hsl(240, 5%, 64%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Rajdhani', 'Inter', sans-serif;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--border);
    border-radius: 0.375rem;
    background: var(--background);
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--card);
}

.dark .sun-icon {
    display: block;
}

.dark .moon-icon {
    display: none;
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

/* Hero Section */
.hero { 
    position: relative; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=1920&h=1080&fit=crop') center/cover; 
    overflow: hidden; 
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.7), var(--background));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 80rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(253, 126, 20, 0.3);
    background: rgba(253, 126, 20, 0.1);
    border-radius: 0.25rem;
}

.hero-badge p {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Buttons */
.btn {
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.2);
}

.btn-outline-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-small:hover {
    background: var(--card);
}

.btn-outline-full {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline-full:hover {
    background: var(--card);
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.btn-link:hover {
    color: var(--primary);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.stat-value.primary {
    color: var(--primary);
}

.stat-value.accent {
    color: var(--accent);
}

.stat-value.success {
    color: var(--success);
}

.stat-label {
    color: var(--muted-foreground);
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Section Styles */
.section {
    padding: 5rem 1rem;
}

.bg-background {
    background: var(--background);
}

.bg-card {
    background: var(--card);
}

.container {
    max-width: 80rem;
    margin: 0 auto;
}

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

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-family: 'Rajdhani', sans-serif;
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card Styles */
.card {
    padding: 1.5rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 0.375rem;
    background: var(--card);
}

.card-hover {
    transition: all 0.2s;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-2px);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 217, 255, 0.3);
    background: rgba(0, 217, 255, 0.1);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.icon-emoji {
    font-size: 2rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-count {
    font-size: 0.875rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.badge-competitive {
    background: rgba(253, 126, 20, 0.1);
    border: 1px solid rgba(253, 126, 20, 0.3);
    color: var(--primary);
}

.badge-casual {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--accent);
}

.badge-accent {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--accent);
}

.badge-upcoming {
    background: rgba(253, 126, 20, 0.1);
    border: 1px solid rgba(253, 126, 20, 0.3);
    color: var(--primary);
}

.badge-completed {
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: var(--muted-foreground);
}

.badge-live {
    background: var(--destructive);
    color: var(--destructive-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
}

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

.live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.badge-viewers {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

/* Stream Cards */
.stream-card {
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 0.375rem;
    overflow: hidden;
    background: var(--card);
    transition: all 0.2s;
    cursor: pointer;
}

.stream-card:hover {
    transform: translateY(-2px);
}

.stream-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stream-info {
    padding: 1rem;
}

.stream-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stream-info p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Tournament Cards */
.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tournament-card {
    padding: 1.5rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 0.375rem;
    background: var(--card);
    transition: all 0.2s;
}

.tournament-card:hover {
    border-color: var(--accent);
}

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

.tournament-title {
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0.5rem 0 0.25rem;
    font-family: 'Rajdhani', sans-serif;
}

.tournament-game {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.tournament-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-row {
    font-size: 0.875rem;
}

.prize {
    color: var(--primary);
    font-weight: 600;
}

.placement {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.placement.gold {
    color: #FFD700;
}

.placement.silver {
    color: #C0C0C0;
}

.placement.bronze {
    color: #CD7F32;
}

/* Team Cards */
.team-card {
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 0.375rem;
    overflow: hidden;
    background: var(--card);
    transition: all 0.2s;
}

.team-card:hover {
    transform: translateY(-2px);
}

.team-image {
    position: relative;
    aspect-ratio: 16/9;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.team-game-badge {
    background: rgba(0, 217, 255, 0.2);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
}

.team-info {
    padding: 1rem;
}

.team-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.wins {
    color: var(--primary);
    font-weight: 600;
}

/* Testimonial Cards */
.testimonial-card {
    padding: 1.5rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 0.375rem;
    background: var(--card);
    transition: all 0.2s;
}

.testimonial-card:hover {
    border-color: var(--accent);
}

.testimonial-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.testimonial-header h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.rating {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.testimonial-quote {
    font-style: italic;
    color: var(--foreground);
    opacity: 0.9;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-banner {
    background: url('https://images.unsplash.com/photo-1538481199705-c710c4e965fc?w=1920&h=600&fit=crop') center/cover;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.9), rgba(0,0,0,0.8), rgba(0,0,0,0.7));
}

.cta-content {
    position: relative;
    z-index: 1;
    padding: 5rem 2rem;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 4rem;
    }
}

.cta-subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.9);
    max-width: 48rem;
    margin: 0 auto 2rem;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.dot.primary {
    background: var(--primary);
}

.dot.accent {
    background: var(--accent);
}

.dot.success {
    background: var(--success);
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 1rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-heading {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.footer-text-small {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--card);
    border-color: var(--primary);
    color: var(--primary);
}

.newsletter {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.5rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-size: 0.875rem;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

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

.footer-bottom-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

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