/* ========================================
   Global Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --text-color: #eaeaea;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --border-color: #444;
}

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Header & Navigation
   ======================================== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.logo:hover {
    color: #ff6b7a;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #ff6b7a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%),
                url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?w=1200') center/cover;
    padding: 6rem 2rem;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========================================
   Main Container
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

/* ========================================
   Matches Section
   ======================================== */
.matches-section {
    margin: 3rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1rem;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.match-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f3460 100%);
    border-radius: 10px;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    border-color: var(--accent-color);
}

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

.league-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.match-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-live {
    background-color: #e74c3c;
    color: white;
    animation: pulse 1s infinite;
}

.status-upcoming {
    background-color: #3498db;
    color: white;
}

.status-finished {
    background-color: #95a5a6;
    color: white;
}

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

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

.team {
    text-align: center;
    flex: 1;
}

.team-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.team-name {
    font-weight: 600;
    font-size: 0.95rem;
}

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

.match-score {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin: 1rem 0;
}

.match-time {
    text-align: center;
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.match-actions {
    display: flex;
    gap: 1rem;
}

.btn-watch {
    flex: 1;
    background-color: var(--accent-color);
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-watch:hover {
    background-color: #ff6b7a;
    transform: scale(1.05);
}

.btn-details {
    flex: 1;
    background-color: transparent;
    color: var(--accent-color);
    padding: 0.7rem;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background-color: var(--accent-color);
    color: white;
}

/* ========================================
   Match Details Page
   ======================================== */
.match-details-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.stream-player {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stream-player iframe {
    width: 100%;
    height: 500px;
    border: none;
}

.match-info {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f3460 100%);
    border-radius: 10px;
    padding: 2rem;
    border: 2px solid var(--border-color);
}

.match-info h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.info-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #bbb;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ========================================
   Comments Section
   ======================================== */
.comments-section {
    margin-top: 3rem;
}

.comments-section h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.comment-form {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group textarea,
.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: inherit;
}

.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(233, 69, 96, 0.3);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

.comment-author {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.comment-time {
    color: #bbb;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.comment-text {
    color: var(--text-color);
    line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    padding: 3rem 2rem;
    margin-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

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

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #bbb;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .matches-grid {
        grid-template-columns: 1fr;
    }

    .match-details-container {
        grid-template-columns: 1fr;
    }

    .stream-player iframe {
        height: 300px;
    }

    .match-teams {
        flex-direction: column;
        gap: 1rem;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

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

    .match-card {
        padding: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}
