/* style.css - Cleaned and Consolidated */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

:root {
    --primary: #1a237e;
    --secondary: #283593;
    --accent: #ff3d00;
    --light: #f5f5f5;
    --dark: #212121;
    --gray: #757575;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
}

body {
    background-color: #0d1b2a;
    color: var(--light);
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin: 20px auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #ff8a00, #ff3d00);
    margin: 15px auto;
    border-radius: 2px;
}

/* Header Navigation */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--accent);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(to right, #ff8a00, #ff3d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(13, 27, 42, 0.9), rgba(13, 27, 42, 0.9)), url('https://placehold.co/1200x600/1a237e/ffffff?text=Live+Football+Streams') center/cover;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ff8a00, #ff3d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

.cta-button {
    background: linear-gradient(to right, var(--accent), #ff8a00);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 61, 0, 0.4);
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 61, 0, 0.6);
}

/* Sections */
.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #ff8a00, #ff3d00);
    border-radius: 2px;
}

/* Ad Slot */
.ad-slot {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ad-slot h3 {
    color: #757575;
    margin-bottom: 10px;
}

.ad-slot p {
    color: #bdbdbd;
}


/* --- Live Streams Grid Styles --- */
.live-streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stream-card {
    background-color: #0d1b2a;
    border: 2px solid #ff0000;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.2);
}

.league-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.match-time {
    font-weight: bold;
    color: #ff0000; /* Red text for time */
}

.team-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 15px;
}

.team-logos img {
    max-width: 80px;
    max-height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-placeholder {
    width: 80px;
    height: 80px;
    background: #1a237e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin: 10px 0; /* Add some vertical spacing */
}

.match-name {
    text-align: center;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes buttons to the bottom */
}

.match-name h3 {
    font-size: 1.2rem;
    margin: 0;
    color: white;
}

.watch-now {
    text-align: center;
    margin-top: auto; /* Aligns to bottom */
}

/* General Button Styles */
.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(to right, #ff3d00, #ff8a00);
    color: white;
    display: inline-block;
    margin: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

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

.stream-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #bdbdbd;
}

.stream-provider {
    display: flex;
    align-items: center;
    gap: 4px;
}

.provider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Schedule */
.schedule-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.schedule-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    background: rgba(26, 35, 126, 0.7);
    padding: 15px 20px;
    font-weight: 700;
}

.schedule-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.schedule-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #1a237e, #283593);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo i {
    color: rgba(255, 255, 255, 0.7);
}

.team-logo img { /* Added for schedule team logos */
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.vs {
    color: var(--gray);
    font-weight: 700;
}

/* Specific style for Schedule times - overrides general .match-time if needed */
.schedule-row .match-time {
    color: #4caf50; /* Green text for time in Schedule */
    font-weight: 700;
}

/* General .match-time for any other use (fallback) */
.match-time {
    font-weight: 700;
    /* color is defined by more specific selectors above */
}


/* Highlights */
.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.highlight-thumb {
    position: relative;
    padding-top: 56.25%;
    background: #1a237e;
}

.highlight-thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.highlight-card:hover .play-icon {
    color: var(--accent);
}

.highlight-info {
    padding: 20px;
}

.highlight-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.highlight-meta {
    display: flex;
    justify-content: space-between;
    color: #bdbdbd;
    font-size: 0.9rem;
}

/* Admin Panel */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-form {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    font-family: monospace;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}


/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdbdbd;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #757575;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        padding: 15px;
        border-radius: 8px;
        display: none;
    }

    nav ul.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

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

    .streams-container,
    .highlights-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Adjust Schedule for Mobile */
    .schedule-header,
    .schedule-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .schedule-header div:not(:first-child),
    .schedule-row > div:not(:first-child) {
        text-align: left;
        padding-left: 55px;
    }


    /* Live Streams Mobile Adjustments */
    .team-logos {
        flex-direction: column;
        gap: 10px;
    }
    .live-streams-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    .stream-card {
        padding: 10px; /* Reduce padding for mobile */
    }

    .team-logos img,
    .team-placeholder {
        max-width: 60px;
        max-height: 60px;
    }

    .vs {
        font-size: 1.5rem;
    }
    .match-name h3 {
        font-size: 1.1rem; /* Smaller font size for mobile */
    }

    .admin-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

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

    .stream-quality {
        flex-direction: column;
        gap: 5px;
    }

    .quality-btn {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

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

    .container {
        padding: 20px 15px;
        margin: 10px auto;
    }

    .header {
        font-size: 1.6rem;
    }

    .match-info h2 {
        font-size: 1.6rem;
    }

    .stream-options {
        flex-direction: column;
        gap: 10px;
    }

    .stream-option {
        width: 100%;
    }
    .team-logos img,
    .team-placeholder {
        max-width: 50px; /* Even smaller logos for very small screens */
        max-height: 50px;
    }

    .match-name h3 {
        font-size: 1rem; /* Further reduce font size */
    }
    .schedule-header,
    .schedule-row {
        grid-template-columns: 1fr; /* Ensure single-column layout */
    }
}
