/* Modern Galaxy-Style Search and Filter Section */

/* Modern Search Wrapper */
.modern-search-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1c6cdb;
    font-size: 1.1rem;
    z-index: 2;
}

.modern-search-input {
    width: 100%;
    padding: 0.85rem 0.85rem 0.85rem 3.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: none;
}

.modern-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.modern-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(28, 108, 219, 0.5);
    box-shadow: 0 0 0 3px rgba(28, 108, 219, 0.1);
}

/* Light Mode Search */
body.light-mode .modern-search-input {
    background: #ffffff;
    border-color: #dee2e6;
    color: #000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.light-mode .modern-search-input::placeholder {
    color: #adb5bd;
}

body.light-mode .modern-search-input:focus {
    background: #ffffff;
    border-color: #1c6cdb;
    box-shadow: 0 0 0 3px rgba(28, 108, 219, 0.1);
}

/* Featured Leagues Section */
.featured-leagues {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.league-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.league-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(28, 108, 219, 0.3);
    transform: translateY(-1px);
}

.league-card.active {
    background: rgba(28, 108, 219, 0.15);
    border-color: #1c6cdb;
}

.league-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.league-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.league-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.league-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

.league-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.03em;
}

.live-pulse {
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(220, 53, 69, 0);
    }
}

/* Light Mode Leagues */
body.light-mode .league-card {
    background: #ffffff;
    border-color: #e9ecef;
}

body.light-mode .league-card:hover {
    background: #f8f9fa;
    border-color: rgba(28, 108, 219, 0.3);
}

body.light-mode .league-name {
    color: #000;
}

body.light-mode .league-icon {
    background: #f8f9fa;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0;
}

.chip-btn i,
.chip-btn .fi {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.chip-btn .fi {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 2px;
    display: inline-block;
    background-size: cover;
    background-position: center;
}

.flag-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.chip-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.chip-btn:hover i {
    color: rgba(255, 255, 255, 0.8);
}

.chip-btn.active {
    background: #1c6cdb;
    border-color: #1c6cdb;
    color: #fff;
}

.chip-btn.active i {
    color: #fff;
}

/* Light Mode Chips */
body.light-mode .chip-btn {
    background: #ffffff;
    border-color: #dee2e6;
    color: #495057;
    box-shadow: none;
}

body.light-mode .chip-btn i {
    color: #6c757d;
}

body.light-mode .chip-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #000;
}

body.light-mode .chip-btn:hover i {
    color: #495057;
}

body.light-mode .chip-btn.active {
    background: #1c6cdb;
    border-color: #1c6cdb;
    color: #fff;
}

body.light-mode .chip-btn.active i {
    color: #fff;
}

/* Special Glow Effects for Sports and Swahili */
.chip-btn[data-filter="sports"] {
    animation: sportsGlow 2s ease-in-out infinite;
}

.chip-btn[data-filter="swahili"] {
    animation: swahiliGlow 2s ease-in-out infinite;
}

@keyframes sportsGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
    50% {
        border-color: rgba(255, 152, 0, 0.6);
        box-shadow: 0 0 12px rgba(255, 152, 0, 0.4);
    }
}

@keyframes swahiliGlow {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
    50% {
        border-color: rgba(76, 175, 80, 0.6);
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
    }
}

/* Light mode glow effects */
body.light-mode .chip-btn[data-filter="sports"] {
    animation: sportsGlowLight 2s ease-in-out infinite;
}

body.light-mode .chip-btn[data-filter="swahili"] {
    animation: swahiliGlowLight 2s ease-in-out infinite;
}

@keyframes sportsGlowLight {
    0%, 100% {
        border-color: #dee2e6;
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
    50% {
        border-color: rgba(255, 152, 0, 0.7);
        box-shadow: 0 0 12px rgba(255, 152, 0, 0.3);
    }
}

@keyframes swahiliGlowLight {
    0%, 100% {
        border-color: #dee2e6;
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
    50% {
        border-color: rgba(76, 175, 80, 0.7);
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-search-input {
        padding: 0.9rem 0.9rem 0.9rem 3.2rem;
        font-size: 0.95rem;
        border-radius: 14px;
    }
    
    .search-icon {
        left: 1rem;
        font-size: 1rem;
    }
    
    .featured-leagues {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    .league-card {
        padding: 0.85rem 1rem;
        border-radius: 14px;
    }
    
    .league-icon {
        width: 42px;
        height: 42px;
    }
    
    .league-name {
        font-size: 0.95rem;
    }
    
    .chip-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .chip-btn i {
        font-size: 0.9rem;
    }
    
    .flag-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .filter-chips {
        gap: 0.5rem;
    }
    
    .chip-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.8rem;
    }
}
