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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 100vh;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1rem 0;
}

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

.navbar-brand .logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.navbar-brand .logo a {
    color: #00ff88;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar-brand .logo a:hover {
    color: #00cc6a;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Search Section */
.search-section {
    padding: 2rem 0;
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 500px;
}

#event-search {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 4rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#event-search:focus {
    outline: none;
    border-color: #00ff88;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

#event-search::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

/* Events Section */
.events-section {
    padding: 2rem 0 4rem;
}

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

.date-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agenda-label {
    color: #00ff88;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.current-date {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.category-filter {
    position: relative;
}

.category-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    padding: 0.75rem 2rem 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="white" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
}

.category-dropdown:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.category-dropdown option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Events Grid */
.events-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00cc6a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.event-card:hover::before {
    transform: scaleX(1);
}

.event-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.league-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    color: #ffffff;
}

.league-icon.brasileirao {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
}

.league-icon.champions {
    background: linear-gradient(135deg, #0066cc, #004499);
}

.league-icon.laliga {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.league-icon.ligue1 {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.league-name {
    color: #cccccc;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-time {
    color: #00ff88;
    font-size: 1.1rem;
    font-weight: 700;
}

.event-match {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.event-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-status.live {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #ffffff;
    animation: pulse 2s infinite;
}

.event-status.upcoming {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-events {
    text-align: center;
    padding: 3rem;
    color: #cccccc;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    color: #00ff88;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.footer-column ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #00ff88;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
}

/* Stream Modal Styles */
.stream-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: modalFadeIn 0.3s ease-out;
}

.stream-modal-content {
    width: 95%;
    max-width: 1200px;
    height: 90%;
    max-height: 800px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.stream-header {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #4a7c59;
}

.stream-info h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.stream-info p {
    color: #b8e6b8;
    margin: 0 0 12px 0;
    font-size: 1rem;
}

.stream-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stream-stats span {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    backdrop-filter: blur(10px);
}

.status-live {
    background: linear-gradient(45deg, #ff4444, #ff6666) !important;
    animation: pulse 2s infinite;
}

.status-upcoming {
    background: linear-gradient(45deg, #ffa500, #ffb347) !important;
}

.status-finished {
    background: linear-gradient(45deg, #666, #888) !important;
}

.close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.stream-container {
    flex: 1;
    background: #000;
    position: relative;
    overflow: hidden;
}

.stream-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Mobile First Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .navbar-brand .logo {
        font-size: 1.8rem;
    }
    
    .navbar-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 9999;
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 15px 25px;
        border-radius: 10px;
        background: rgba(0, 255, 136, 0.1);
        border: 1px solid rgba(0, 255, 136, 0.3);
        width: 80%;
        text-align: center;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(0, 255, 136, 0.2);
        transform: translateY(-2px);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: 30px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .search-container {
        padding: 15px;
        background: rgba(26, 26, 26, 0.8);
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    #event-search {
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .category-dropdown {
        width: 100%;
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .event-card {
        padding: 15px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .event-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
    }
    
    .event-header {
        margin-bottom: 12px;
    }
    
    .league-icon {
        width: 35px;
        height: 35px;
        font-size: 0.7rem;
    }
    
    .league-name {
        font-size: 0.8rem;
    }
    
    .event-time {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .event-match {
        font-size: 0.9rem;
        margin: 8px 0;
        line-height: 1.3;
    }
    
    .event-status {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .events-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .date-info {
        justify-content: center;
    }
    
    .event-details {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Stream Modal Mobile */
    .stream-modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
    }
    
    .stream-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stream-info h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .stream-info p {
        font-size: 0.9rem;
    }
    
    .stream-stats {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .stream-stats span {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .close-modal {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .event-card {
        padding: 15px;
    }
    
    .events-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .date-info {
        justify-content: center;
    }
    
    .event-details {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .event-card {
        padding: 1rem;
    }
    
    .navbar-brand .logo {
        font-size: 1.5rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .event-card {
        border: 2px solid #ffffff;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: #00ff88;
        color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}