/* 
 * SBOBET88 - E-Sports Category Page Styles
 * Specific styles for the E-Sports category page
 */

/* E-Sports Header Modifications */
.esports-header {
    position: relative;
}

.esports-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff2a6a, #0056b3, #00d8ff, #ff2a6a);
    z-index: 1;
}

/* Games Showcase Section */
.games-showcase {
    padding: 3rem 0;
    background: #f0f7ff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.game-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.game-image {
    height: 180px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
    position: relative;
}

.game-logo {
    position: absolute;
    top: -30px;
    left: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 1;
}

.game-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-info h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #091e5b;
    font-size: 1.2rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
}

.tournament-count,
.match-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tournament-count::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #0056b3;
    border-radius: 50%;
}

.match-count::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff2a6a;
    border-radius: 50%;
}

.featured-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(90deg, #ff2a6a, #ff6a2a);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(255, 42, 106, 0.3);
}

.game-card.featured {
    border: 2px solid #ff2a6a;
}

.view-more-games {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-more {
    background: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-view-more:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* Featured Tournaments Section */
.featured-tournaments {
    padding: 4rem 0;
}

.tournaments-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tournament-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tournament-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tournament-card.major {
    border-left: 4px solid #ff2a6a;
}

.tournament-banner {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.tournament-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tournament-logo {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    z-index: 1;
}

.tournament-info {
    padding: 1.5rem;
}

.tournament-info h3 {
    margin-bottom: 1rem;
    color: #091e5b;
    font-size: 1.2rem;
}

.tournament-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
}

.tournament-prize {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f7ff;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.prize-label {
    font-size: 0.85rem;
    color: #666;
}

.prize-amount {
    font-weight: 700;
    color: #0056b3;
}

.tournament-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.teams-count {
    font-size: 0.85rem;
    color: #666;
}

.teams-logos {
    display: flex;
    gap: 0.5rem;
}

.teams-logos img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #eee;
}

.btn-view-tournament {
    display: block;
    width: 100%;
    background: linear-gradient(to bottom, #0056b3 0%, #003580 100%);
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-tournament:hover {
    background: linear-gradient(to bottom, #004494 0%, #002a66 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

/* Live Matches Section */
.live-matches {
    padding: 4rem 0;
    background: #f8f9fa;
}

.live-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.match-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.match-card.live {
    border-left: 3px solid #ff2a6a;
}

.match-card.upcoming {
    border-left: 3px solid #0056b3;
}

.match-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.live-indicator {
    background: #ff2a6a;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.match-time {
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
}

.match-game {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.match-game img {
    margin-right: 0.5rem;
    border-radius: 50%;
}

.match-teams {
    margin-bottom: 1.2rem;
}

.match-teams .team {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.match-teams .team:last-child {
    margin-bottom: 0;
}

.team img {
    width: 24px;
    height: 24px;
    margin-right: 0.8rem;
    border-radius: 50%;
}

.team-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.team-score {
    font-weight: 700;
    color: #091e5b;
    font-size: 1rem;
}

.vs {
    text-align: center;
    margin: 0.5rem 0;
    color: #999;
    font-size: 0.8rem;
}

.match-format {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
    background: #f0f7ff;
    padding: 0.3rem;
    border-radius: 4px;
}

.match-odds {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.odd-btn {
    flex: 1;
    background: #f0f7ff;
    border: 1px solid #c8deff;
    border-radius: 6px;
    padding: 0.5rem 0;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.odd-btn:hover {
    background: #e0eeff;
    border-color: #0056b3;
}

.odd-btn.selected {
    background: #0056b3;
    border-color: #0056b3;
}

.odd-btn.selected .odd-type,
.odd-btn.selected .odd-value {
    color: white;
}

.odd-type {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.odd-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0056b3;
}

.match-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-bet {
    flex: 1;
    display: block;
    text-align: center;
    padding: 0.6rem 0;
    background: #0056b3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-bet:hover {
    background: #003d82;
}

.btn-watch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #ff2a6a;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-watch:hover {
    background: #e01e54;
}

.match-more {
    text-align: center;
    font-size: 0.85rem;
}

.match-more a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.match-more a:hover {
    color: #003d82;
    text-decoration: underline;
}

/* Upcoming Matches Section */
.upcoming-matches {
    padding: 4rem 0;
}

.upcoming-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.match-card .match-time {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.match-card .match-time .date {
    font-size: 0.8rem;
    color: #666;
}

.match-card .match-time .time {
    font-weight: 700;
    color: #091e5b;
}

/* Live Streaming Section */
.live-streaming {
    padding: 4rem 0;
    background: linear-gradient(135deg, #091e5b 0%, #1139af 100%);
    color: white;
}

.streaming-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.streaming-info h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.streaming-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.streaming-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.feature-icon svg {
    color: #ff2a6a;
}

.feature-icon h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.btn-watch-now {
    display: inline-block;
    background: #ff2a6a;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-watch-now:hover {
    background: #e01e54;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 42, 106, 0.3);
}

.streaming-preview {
    position: relative;
}

.preview-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.preview-container img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.preview-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.streaming-preview .live-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ff2a6a;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(255, 42, 106, 0.5);
    animation: pulse 1.5s infinite;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .tournaments-slider {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .streaming-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .streaming-preview {
        order: -1;
    }
}

@media (max-width: 768px) {
    .games-grid,
    .live-matches-grid,
    .upcoming-matches-grid {
        grid-template-columns: 1fr;
    }
    
    .streaming-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .match-odds {
        flex-wrap: wrap;
    }
    
    .match-actions {
        flex-direction: column;
    }
    
    .tournament-teams {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}