/* 
 * SBOBET88 - Sportsbook Category Page Styles
 * Specific styles for the Sportsbook category page
 */

/* Category Highlights Section */
.category-highlights {
    padding: 2rem 0;
    background: #f0f7ff;
    margin-top: -1px;
    border-bottom: 1px solid #e0e0e0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.highlight-icon img {
    width: 30px;
    height: 30px;
}

.highlight-content {
    flex: 1;
}

.highlight-content h3 {
    font-size: 1.1rem;
    color: #091e5b;
    margin-bottom: 0.5rem;
}

.highlight-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Live Matches Section */
.live-matches {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    color: #091e5b;
    margin: 0;
    font-size: 1.8rem;
}

.section-header p {
    color: #666;
    margin: 0;
}

.btn-view-all {
    color: #0056b3;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-view-all:hover {
    color: #003d82;
    text-decoration: underline;
}

.live-matches-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.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-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-league {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #666;
}

.match-league 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-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-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;
}

.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.prev-btn,
.next-btn {
    background: transparent;
    border: 2px solid #0056b3;
    color: #0056b3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background: #0056b3;
    color: white;
}

.prev-btn:disabled,
.next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #0056b3;
    transform: scale(1.2);
}

/* Upcoming Matches Section */
.upcoming-matches {
    padding: 3rem 0;
    background: #f8f9fa;
}

.match-tabs {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 1.5rem;
    gap: 0.5rem;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: white;
    border: 1px solid #ddd;
    color: #333;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    background: #f0f7ff;
    border-color: #c8deff;
}

.tab-btn.active {
    background: #0056b3;
    color: white;
    border-color: #0056b3;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.match-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.match-card.upcoming {
    border-left: 3px solid #ffbd00;
}

/* Special Format for Racing and Other Sports */
.special-format {
    padding: 0.5rem 0;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.driver {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: 4px;
    background: #f0f7ff;
    transition: background 0.3s ease;
}

.driver:hover {
    background: #e0eeff;
    cursor: pointer;
}

.driver-name {
    font-size: 0.9rem;
    color: #333;
}

.driver-odd {
    font-weight: 700;
    color: #0056b3;
    font-size: 0.95rem;
}

/* Parlay Builder Section */
.parlay-builder {
    padding: 3rem 0;
}

.parlay-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.parlay-description {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.parlay-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #444;
}

.parlay-description p:last-child {
    margin-bottom: 0;
}

.parlay-slip {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.parlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.parlay-header h3 {
    margin: 0;
    color: #091e5b;
}

.btn-clear-slip {
    background: transparent;
    color: #ff2a6a;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-clear-slip:hover {
    color: #d40e52;
    text-decoration: underline;
}

.parlay-empty {
    text-align: center;
    padding: 2rem 0;
    color: #999;
}

.parlay-empty p:first-child {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.parlay-selections {
    margin-bottom: 1.5rem;
}

.parlay-selection {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.parlay-selection:last-child {
    margin-bottom: 0;
}

.selection-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #ff2a6a;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.selection-teams {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #333;
}

.selection-bet {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selection-type {
    color: #666;
    font-size: 0.85rem;
}

.selection-odd {
    font-weight: 700;
    color: #0056b3;
}

.parlay-calculator {
    background: #f0f7ff;
    border-radius: 8px;
    padding: 1.5rem;
}

.calculator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calculator-row:last-of-type {
    margin-bottom: 1.5rem;
}

.calculator-row label {
    color: #666;
}

.stake-input {
    position: relative;
    display: flex;
    align-items: center;
}

.currency {
    position: absolute;
    left: 0.8rem;
    color: #666;
}

#parlay-stake {
    padding-left: 2.5rem;
    width: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0.5rem 0.5rem 2.5rem;
}

.total-odds,
.potential-win {
    font-weight: 700;
    color: #0056b3;
}

.btn-place-bet {
    background: linear-gradient(to bottom, #0056b3 0%, #003580 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-place-bet:hover {
    background: linear-gradient(to bottom, #004494 0%, #002a66 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 53, 128, 0.3);
}

.btn-place-bet.disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hidden {
    display: none;
}

/* Bet Types Section */
.bet-types {
    padding: 4rem 0;
    background: #f0f7ff;
}

.bet-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bet-type-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bet-type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.bet-type-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    border-radius: 50%;
}

.bet-type-card h3 {
    color: #091e5b;
    margin-bottom: 1rem;
}

.bet-type-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn-learn-more {
    display: inline-block;
    background: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-learn-more:hover {
    background: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* Category Content Section modifications */
.category-content h3 {
    color: #091e5b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.category-content ul,
.category-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.category-content li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: #444;
}

.category-content li strong {
    color: #091e5b;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .parlay-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .live-matches-slider,
    .match-list {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    
    .bet-types-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .match-odds {
        flex-wrap: wrap;
    }
    
    .odd-btn {
        min-width: 80px;
    }
    
    .match-teams .team {
        flex-wrap: wrap;
    }
    
    .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .tab-btn {
        flex: 0 0 auto;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
}