/* Gaming Tournament Platform - Main Stylesheet */

:root {
    --primary-dark: #0d1117;
    --secondary-dark: #1a1f26;
    --primary-warning: #ffc107;
    --secondary-yellow: #ffd700;
    --accent-red: #ff4444;
    --text-light: #e0e0e0;
    --text-muted: #999;
    --border-color: #ffc107;
}

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

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

/* ==================== GENERAL ====================  */

.gaming-theme {
    background: linear-gradient(135deg, #0d1117 0%, #1a1f26 100%);
    min-height: 100vh;
}

.gaming-title {
    font-weight: 900;
    letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-warning) 0%, var(--secondary-yellow) 100%);
    border-radius: 2px;
}

/* ==================== HERO SECTION ====================  */

.hero-banner {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 68, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    animation: fadeInDown 1s ease-out;
}

.hero-content .btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

/* ==================== TOURNAMENT CARDS ====================  */

.tournament-card {
    background: linear-gradient(135deg, #1a1f26 0%, #252d35 100%);
    border: 2px solid rgba(255, 193, 7, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.tournament-card:hover {
    border-color: var(--primary-warning);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
    transform: translateY(-5px);
}

.tournament-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.8);
}

.tournament-card:hover img {
    transform: scale(1.1);
    filter: brightness(1);
}

.card-content {
    padding: 1.5rem;
}

.card-content h5 {
    color: var(--primary-warning);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ==================== STEP CARDS ====================  */

.step-card {
    background: linear-gradient(135deg, #1a1f26 0%, #252d35 100%);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-warning);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 193, 7, 0.1);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-warning) 0%, var(--secondary-yellow) 100%);
    color: #000;
    font-size: 2rem;
    font-weight: 900;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.step-card h5 {
    color: var(--primary-warning);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* ==================== STATISTICS ====================  */

.statistics {
    background: linear-gradient(135deg, #0d1117 0%, #1a1f26 100%);
    position: relative;
    overflow: hidden;
}

.statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 68, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* ==================== FORMS ====================  */

.form-control, .form-select {
    background-color: #1a1f26;
    border: 2px solid rgba(255, 193, 7, 0.2);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: #252d35;
    border-color: var(--primary-warning);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-label {
    color: var(--primary-warning);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ==================== BUTTONS ====================  */

.btn-warning {
    background: linear-gradient(135deg, var(--primary-warning) 0%, var(--secondary-yellow) 100%);
    color: #000 !important;
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.btn-outline-warning {
    color: var(--primary-warning);
    border: 2px solid var(--primary-warning);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background-color: var(--primary-warning);
    color: #000;
}

/* ==================== UTILITIES ====================  */

.border-warning {
    border-color: var(--primary-warning) !important;
}

.text-warning {
    color: var(--primary-warning) !important;
}

.bg-warning {
    background-color: var(--primary-warning) !important;
    color: #000;
}

/* ==================== ANIMATIONS ====================  */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==================== RESPONSIVE ====================  */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .tournament-card img {
        height: 150px;
    }

    .step-card {
        margin-bottom: 1rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1f26;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-warning);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-yellow);
}
