/* ===== SPORTS PAGE STYLES ===== */

/* Sport Main Container */
.sport-main {
    padding: 2rem 4% 4rem;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: linear-gradient(to bottom, transparent 0%, #0a0a0a 50px, #0a0a0a 100%);
}

/* Page Header */
.sport-page-header {
    padding: 2rem 0 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.sport-page-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 50%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: 0 0 30px rgba(91, 141, 238, 0.3);
}

.sport-page-subtitle {
    font-size: 1.1rem;
    color: #999;
    letter-spacing: 0.5px;
}

/* Filter Bar */
.sport-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sport-select,
.sport-search-input {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.sport-select:hover,
.sport-search-input:hover {
    border-color: rgba(91, 141, 238, 0.5);
    background: rgba(15, 15, 15, 0.9);
}

.sport-select:focus,
.sport-search-input:focus {
    border-color: rgba(91, 141, 238, 0.8);
    box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.15);
    background: rgba(15, 15, 15, 1);
}

.sport-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.sport-select option {
    background: #1a1a1a;
    color: #fff;
    padding: 0.5rem;
}

/* Sports Grid */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sport-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.sport-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(91, 141, 238, 0.3), 0 0 60px rgba(34, 211, 238, 0.15);
    border-color: rgba(91, 141, 238, 0.5);
}

.sport-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, rgba(91, 141, 238, 0.2), rgba(168, 85, 247, 0.2));
    overflow: hidden;
}

.sport-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sport-card:hover .sport-thumbnail img {
    transform: scale(1.1);
}

.sport-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 0, 0, 0.95);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.6);
    z-index: 2;
}

.sport-live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.sport-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    color: #5B8DEE;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(91, 141, 238, 0.5);
    z-index: 2;
}

.sport-stream-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(82, 255, 179, 0.95);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(82, 255, 179, 0.6);
    z-index: 2;
}

.sport-no-stream-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 152, 0, 0.95);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.6);
    z-index: 2;
}

.sport-card-body {
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sport-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
}

.sport-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #999;
    flex-wrap: wrap;
}

.sport-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sport-description {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 0.3rem;
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: #999;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1rem;
    color: #999;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    gap: 1rem;
}

.loading p {
    color: #999;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sports-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .sport-main {
        padding: 1.5rem 3% 3rem;
        margin-top: 60px;
    }

    .sport-page-header {
        padding: 1.5rem 0 1rem;
        margin-bottom: 1.5rem;
    }

    .sport-page-title {
        font-size: 1.8rem;
    }

    .sport-page-subtitle {
        font-size: 0.95rem;
    }

    .sport-filters {
        grid-template-columns: 1fr;
        padding: 1.2rem;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .sports-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .sport-card-body {
        padding: 0.8rem 1rem;
    }

    .sport-title {
        font-size: 0.9rem;
        min-height: 2.6em;
    }

    .sport-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .sport-description {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sport-main {
        padding: 1rem 3% 2rem;
    }

    .sport-page-title {
        font-size: 1.5rem;
    }

    .sport-page-subtitle {
        font-size: 0.85rem;
    }

    .sports-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sport-card {
        max-width: 100%;
    }

    .empty-state {
        padding: 3rem 1rem;
    }

    .empty-state-icon {
        font-size: 4rem;
    }

    .empty-state h3 {
        font-size: 1.2rem;
    }

    .empty-state p {
        font-size: 0.9rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #5B8DEE 0%, #A855F7 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(91, 141, 238, 0.4), 0 0 0 4px rgba(91, 141, 238, 0.1);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(91, 141, 238, 0.6), 0 0 0 6px rgba(91, 141, 238, 0.15);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .sport-card:hover {
        transform: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .sport-card:hover .sport-thumbnail img {
        transform: none;
    }
    
    .scroll-to-top:hover {
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}
