/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #0a0f1e 0%, #0a1a2e 50%, #0b2b3b 100%);
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: rgba(0,0,0,0.5);
    padding: 8px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,215,0,0.2);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.date-time i {
    margin: 0 5px;
    color: #ffd700;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    transition: all 0.3s;
}

.social-links a:hover {
    color: #ffd700;
    transform: translateY(-3px);
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-text .sport {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
}

/* Search Box */
.search-box input {
    padding: 10px 15px;
    border: none;
    border-radius: 50px 0 0 50px;
    width: 250px;
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.search-box button {
    padding: 10px 20px;
    border: none;
    border-radius: 0 50px 50px 0;
    background: #ffd700;
    color: #000;
    cursor: pointer;
}

/* User Menu */
.user-menu .login-btn {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    padding: 8px 20px;
    border-radius: 50px;
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.user-dropdown img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    min-width: 180px;
    border-radius: 10px;
    padding: 10px;
    display: none;
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== MAIN NAVIGATION ===== */
.main-nav {
    background: rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(255,215,0,0.3);
    position: sticky;
    top: 80px;
    z-index: 99;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-menu li a:hover {
    background: rgba(255,215,0,0.2);
    color: #ffd700;
}

.live-badge {
    background: red;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Dropdown Menu */
.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a2e;
    min-width: 220px;
    border-radius: 10px;
    padding: 10px;
    display: none;
    z-index: 100;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content li a {
    padding: 10px 15px;
}

/* Breaking News */
.breaking-news {
    background: rgba(255,215,0,0.1);
    padding: 8px 0;
    border-bottom: 1px solid #ffd700;
}

.breaking-label {
    background: #ffd700;
    color: #000;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    margin-left: 15px;
}

.ticker {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 80%;
}

.ticker-items {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker-items span {
    margin-left: 50px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffd700;
    font-size: 24px;
    cursor: pointer;
}

/* ===== MATCH CARDS ===== */
.live-matches {
    margin: 30px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffd700;
    display: inline-block;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.match-card {
    background: rgba(0,0,0,0.5);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(255,215,0,0.2);
}

.match-card:hover {
    transform: translateY(-5px);
    border-color: #ffd700;
}

.match-card.live {
    border-left: 4px solid red;
    animation: livePulse 1s infinite;
}

@keyframes livePulse {
    0%,100% { border-left-color: red; }
    50% { border-left-color: #ff6666; }
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.team {
    flex: 1;
    font-weight: 700;
    font-size: 16px;
}

.vs {
    color: #ffd700;
    font-weight: 800;
    background: rgba(255,215,0,0.2);
    padding: 5px 10px;
    border-radius: 20px;
}

.match-time {
    text-align: center;
    margin: 15px 0;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.watch-btn {
    display: block;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    text-align: center;
    padding: 10px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.watch-btn:hover {
    transform: scale(1.02);
}

/* ===== SIDEBAR ===== */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.sidebar-ad {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #0a0a0a;
    margin-top: 50px;
    padding: 50px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-widget ul li a:hover {
    color: #ffd700;
    padding-right: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: #ffd700;
    color: #000;
}

.newsletter form {
    display: flex;
    margin-top: 15px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 50px 0 0 50px;
}

.newsletter button {
    padding: 10px 15px;
    border: none;
    border-radius: 0 50px 50px 0;
    background: #ffd700;
    cursor: pointer;
}

.app-download {
    margin-top: 20px;
}

.app-download img {
    height: 40px;
    margin-left: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-right: 20px;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 1000;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0a0a0a;
        padding: 20px;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .dropdown-content {
        position: static;
        background: rgba(255,255,255,0.05);
        margin-top: 10px;
    }
    
    .search-box {
        order: 3;
        width: 100%;
    }
    
    .search-box input {
        width: calc(100% - 60px);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}