/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
}

/* NAVBAR  STYLES */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 28px;
    color: #FFC700; /* Yellow from ESICIA logo */
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
}

.logo-text span {
    color: #1C6EA4; /* Blue from ESICIA logo */
}

/* Navigation items */
.nav-items {
    display: flex;
    gap: 25px;
}

.nav-items a {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.nav-items a:hover {
    color: #FFC700; /* Yellow from ESICIA logo */
}

.nav-items a.active {
    color: #ffffff;
    font-weight: 600;
    position: relative;
}

.nav-items a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #1C6EA4, #FFC700); /* ESICIA colors */
    border-radius: 3px;
}

/* Right section - search and auth */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Search bar */
.search-bar {
    position: relative;
}

.search-bar input {
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    border: none;
    background-color: #2a2a2a;
    color: #ffffff;
    width: 200px;
    outline: none;
    transition: width 0.3s, background-color 0.3s;
}

.search-bar input:focus {
    width: 240px;
    background-color: #333333;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #888888;
}

/* Auth buttons */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.sign-in, .sign-up {
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.sign-in {
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #333333;
}

.sign-in:hover {
    background-color: #1C6EA4; /* Blue from ESICIA logo */
    border-color: #1C6EA4;
}

.sign-up {
    background-color: #1C6EA4; /* Blue from ESICIA logo */
    color: #ffffff;
    border: 1px solid #1C6EA4;
}

.sign-up:hover {
    background-color: #FFC700; /* Yellow from ESICIA logo */
    border-color: #FFC700;
    color: #121212;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Main content area */
.main-content {
    padding: 20px;
    min-height: calc(100vh - 70px); /* Subtract navbar height */
}
/* User Dropdown Styles */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.profile-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.avatar {
    width: 36px;
    height: 36px;
    background-color: #e53170;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

.dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background-color: #1a1a1a;
    border-radius: 8px;
    width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.dropdown-content.show {
    display: block;
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.user-greeting {
    font-weight: 500;
    color: white;
}

.dropdown-body {
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #d1d1d1;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #2a2a2a;
    color: white;
}

.dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 14px;
}

.dropdown-divider {
    height: 1px;
    background-color: #333;
    margin: 8px 0;
}

/* Animation to make it look nicer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content.show {
    animation: fadeInUp 0.2s ease;
}

/* Responsive navbar styles */
@media (max-width: 992px) {
    .navbar {
        padding: 10px 20px;
    }
    
    .nav-items {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: #1a1a1a;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-items.active {
        left: 0;
    }
    
    .nav-items a {
        width: 100%;
        padding: 15px 30px;
        border-bottom: 1px solid #333;
    }
    
    .nav-items a.active::after {
        display: none;
    }
    
    .nav-items a.active {
        background-color: #232323;
        border-left: 3px solid #FFC700;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .search-bar {
        order: 2;
        margin-right: 15px;
    }
    
    .nav-right {
        margin-left: auto;
    }
}

/* Adjustments for smaller screens */
@media (max-width: 768px) {
    .logo img {
        height: 35px;
    }
    
    .search-bar input {
        width: 150px;
    }
    
    .search-bar input:focus {
        width: 180px;
    }
    
    .auth-buttons {
        gap: 5px;
    }
    
    .sign-in, .sign-up {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 15px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .search-bar {
        display: none;
    }
    
    .auth-buttons {
        margin-right: 10px;
    }
    
    /* Add a search icon that would open the search in fullscreen when clicked */
    .mobile-search-icon {
        display: block;
        margin-right: 15px;
        font-size: 18px;
        color: #d1d1d1;
    }
    
    /* You would need to add this element to your HTML */
    .fullscreen-search {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 9999;
        display: none;
        flex-direction: column;
        align-items: center;
        padding-top: 20%;
    }
    
    .fullscreen-search.active {
        display: flex;
    }
    
    .fullscreen-search input {
        width: 90%;
        padding: 15px;
        border-radius: 5px;
        background-color: #333;
        color: white;
        font-size: 16px;
        border: none;
        margin-bottom: 20px;
    }
    
    .fullscreen-search-close {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        color: white;
        cursor: pointer;
    }
}


/* HERO SECTION STYLES */
.hero-section {
    margin: 20px;
    border-radius: 15px;
    overflow: hidden;
    background-color: #1a1a1a;
    position: relative;
    padding: 20px;
}

/* Featured Games Grid */
.featured-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

/* Featured Game Card */
.featured-game-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.featured-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Featured Game Image */
.featured-game-image {
    position: relative;
    height: 200px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Featured Content */
.featured-content {
    padding: 15px;
    width: 100%;
}

.featured-details {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Title and Time Container */
.title-time-container {
    margin-bottom: 10px;
}

.featured-title {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.match-datetime {
    display: block;
    color: #a0a0a0;
    font-size: 0.8rem;
}

/* Status and Action Buttons */
.match-status-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.match-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
}

.match-status.live {
    background-color: #e53170;
    color: white;
}

.match-status.upcoming {
    background-color: #1C6EA4;
    color: white;
}

.match-status.ended {
    background-color: #444;
    color: white;
}

.btn-action {
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.btn-action.watch-now {
    background-color: #e53170;
    color: white;
}

.btn-action.watch-now:hover {
    background-color: #d42060;
}

.btn-action.pay-now {
    background-color: #FFC700;
    color: white;
}

.btn-action.replay {
    background-color: #444;
    color: white;
}

.btn-action.details {
    background-color: #444;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .featured-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .featured-games-grid {
        grid-template-columns: 1fr;
    }  
    .featured-game-image {
        height: 170px;
    }
    
}

/* HIGHLIGHTS SECTION */
.highlights-section {
    padding: 30px 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: #ffffff;
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 25px;
    background: linear-gradient(to bottom, #1C6EA4, #FFC700);
    border-radius: 3px;
}

.view-all {
    color: #1C6EA4;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.view-all:hover {
    color: #FFC700;
}

/* Highlights Grid */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Highlight Card */
.highlight-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.highlight-thumbnail {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #2a2a2a; /* Fallback color for images that don't load */
}

.highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.highlight-duration {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 3px;
    align-self: flex-start;
    display: inline-block;
    position: absolute;
    top: 10px;
    left: 10px;
}

.quality-badge {
    background-color: transparent; /* Make background transparent */
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 3px 8px;
    position: absolute;
    top: 10px;
    left: 10px;
}

.play-button {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 199, 0, 0.8); /* Yellow from ESICIA logo */
    color: #121212;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s, background-color 0.3s;
    opacity: 0.9;
    position: absolute;
    left: 15px;
    bottom: 15px;
}

.highlight-card:hover .play-button {
    opacity: 1;
    transform: scale(1.1);
}

.play-button:hover {
    background-color: #FFC700; /* Solid yellow on hover */
    transform: scale(1.2);
}

/* Highlight Details */
.highlight-details {
    padding: 15px;
}

.highlight-title {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.4;
    /* Display 2 lines max and add ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em; /* Fix height for 2 lines */
}

.highlight-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.league {
    color: #1C6EA4; /* Blue from ESICIA logo */
    font-weight: 600;
}

.date {
    color: #a0a0a0;
}

.highlight-stats {
    display: flex;
    justify-content: space-between;
    color: #a0a0a0;
    font-size: 0.85rem;
    padding-top: 8px;
    border-top: 1px solid #333333;
}

.views, .likes {
    display: flex;
    align-items: center;
    gap: 5px;
}

.views i, .likes i {
    font-size: 0.9rem;
}

.likes i {
    color: #e53170; /* Red color for heart icon */
}

/* Responsive styles for highlights grid */
@media (max-width: 1200px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .highlight-details {
        padding: 12px;
    }
    
    .highlight-title {
        font-size: 0.95rem;
    }
}

/* UPCOMING EVENTS SECTION */
.upcoming-events-section {
    padding: 30px 20px;
    background-color: #161616;
    border-radius: 10px;
    margin: 30px 20px;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Event Card */
.event-card {
    display: flex;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Event Time Section */
.event-time {
    width: 120px;
    background-color: #2a2a2a;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.event-time .day {
    font-size: 1rem;
    font-weight: 600;
    color: #FFC700; /* Yellow from ESICIA logo */
}

.event-time .date {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 5px 0;
}

.event-time .time {
    font-size: 0.9rem;
    color: #d1d1d1;
}

.soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e53170; /* Reddish color */
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Event Details Section */
.event-details {
    flex: 1;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.league-name {
    font-size: 0.85rem;
    color: #1C6EA4; /* Blue from ESICIA logo */
    font-weight: 600;
    margin-bottom: 8px;
}

.match-teams {
    display: flex;
    align-items: center;
    gap: 15px;
}

.team {
    flex: 1;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

.team-home {
    text-align: right;
}

.team-away {
    text-align: left;
}

.vs {
    font-size: 0.9rem;
    color: #888888;
    padding: 0 10px;
}

/* Event Actions Section */
.event-actions {
    width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #2a2a2a;
}

.btn-buy, .btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-buy {
    background-color: #e53170; /* Reddish color for CTA */
    color: white;
    border: none;
}

.btn-buy i {
    margin-right: 8px;
}

.btn-buy:hover {
    background-color: #FFC700; /* Yellow from ESICIA logo */
    color: #121212;
}

.btn-remind .fas {
    color: #FFC700; /* Yellow from ESICIA logo */
}

.btn-details {
    background-color: transparent;
    color: #1C6EA4; /* Blue from ESICIA logo */
    border: none;
}

.btn-details:hover {
    background-color: rgba(28, 110, 164, 0.1);
}

/* Notification popup styles  */
.notification-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1C6EA4;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.notification-popup.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive styles */
@media (max-width: 900px) {
    .event-card {
        flex-direction: column;
    }
    
    .event-time {
        width: 100%;
        flex-direction: row;
        padding: 10px 15px;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .event-time .day, 
    .event-time .date, 
    .event-time .time {
        margin: 0;
    }
    
    .soon-badge {
        position: static;
        margin-left: auto;
    }
    
    .event-actions {
        width: 100%;
        flex-direction: row;
    }
    
    .btn-buy, .btn-details {
        flex: 1;
    }
}

@media (max-width: 576px) {
    .event-time {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        padding: 10px;
    }
    
    .match-teams {
        flex-direction: column;
        gap: 5px;
    }
    
    .team-home, .team-away {
        text-align: center;
    }
    
    .vs {
        font-size: 0.8rem;
    }
    
    .event-actions {
        padding: 10px;
    }
    
    .btn-buy, .btn-details {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .btn-buy i {
        margin-right: 4px;
    }
}

/* FOOTER STYLES */
.footer {
    background-color: #0a0a0a;
    padding: 40px 20px 20px;
    margin-top: 40px;
    border-top: 1px solid #222222;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.logo-image {
    height: 40px;
    width: auto;
    /* Add a slight glow effect to the logo */
    filter: drop-shadow(0 0 5px rgba(255, 199, 0, 0.3));
}

.footer-tagline {
    color: #808080;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-nav {
    margin-bottom: 30px;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
}

.footer-links a:not(:last-child)::after {
    content: '/';
    position: absolute;
    right: -12px;
    color: #444444;
}

.footer-links a:hover {
    color: #FFC700;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #222222;
    color: #808080;
    font-size: 14px;
}

/* CONTACT US STYLES */
.footer-contact {
    margin-bottom: 20px;
    text-align: center;
}

.footer-contact-title {
    color: #d1d1d1;
    margin-bottom: 5px;
}

.footer-contact-numbers{
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-contact-number {
    margin: 5px 0;
}

.footer-contact-number a {
    color: #d1d1d1;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-number a:hover {
    color: #FFC700;
}

/* Responsive styles */
@media (max-width: 768px) {
    .logo-image {
        height: 35px;
    }
    
    .footer-links {
        gap: 15px 10px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-links a:not(:last-child)::after {
        right: -7px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 15px 15px;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .footer-tagline {
        font-size: 13px;
    }
    
    .footer-links {
        gap: 10px 8px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-links a:not(:last-child)::after {
        right: -5px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }

    .footer-contact-numbers {
        flex-direction: column;
        gap: 5px;
    }

    .footer-contact-title {
        font-size: 13px; 
    }
    
    .footer-contact-number a {
        font-size: 12px;  
    }
}
