/* css/style.css */

:root {
    --primary: #6C5CE7;
    --secondary: #A855F7;
    --accent: #00D2FF;
    --dark: #0a0a1a;
    --darker: #050510;
    --light: #ffffff;
    --gray: #1a1a2e;
    --success: #00C853;
    --danger: #FF1744;
    --warning: #FFD600;
    --info: #00B0FF;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--light);
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Glassmorphism */
.glass-card {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 26, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--light) !important;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent) !important;
    transform: translateY(-2px);
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 10px 0;
    overflow: hidden;
}

.announcement-item {
    text-align: center;
    font-weight: 500;
}

.announcement-item.warning {
    background: var(--warning);
    color: var(--dark);
}

.announcement-item.danger {
    background: var(--danger);
}

.announcement-item.success {
    background: var(--success);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Tournament Cards */
.tournament-card {
    background: var(--gray);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.tournament-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 92, 231, 0.3);
}

.tournament-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.tournament-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tournament-card:hover .tournament-banner img {
    transform: scale(1.1);
}

.game-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,0,0,0.6);
    padding: 5px;
}

.tournament-type {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.tournament-info {
    padding: 20px;
}

.tournament-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--light);
}

.tournament-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 14px;
}

.detail-item i {
    width: 20px;
    text-align: center;
}

.progress {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.slot-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 15px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--light);
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent);
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--gray);
    padding: 25px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    background: rgba(108, 92, 231, 0.1);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--accent);
    font-size: 14px;
}

/* Forms */
.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 12px 20px;
    border-radius: 10px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--light);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.form-label {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

/* Tables */
.table {
    color: var(--light);
}

.table-dark {
    background: var(--gray);
    border-radius: 15px;
    overflow: hidden;
}

.table-dark th {
    background: rgba(108, 92, 231, 0.2);
    border-bottom: 2px solid var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.table-dark td {
    border-color: rgba(255, 255, 255, 0.05);
}

/* Modal */
.modal-content {
    background: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 60px 0 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
    color: var(--light);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer ul {
    padding: 0;
}

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

.footer ul li a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
    color: var(--light);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .tournament-details {
        grid-template-columns: 1fr;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 10px;
}

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

/* Pulse animation for live status */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 200, 83, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 83, 0);
    }
}

.live-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 2s infinite;
}