/* Sportsbook Page Specific Styles */

/* Sports Betting Layout */
.sports-betting-layout {
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
    max-width: 100%;
}

/* Sports Sidebar - Extending the common sidebar styles */
.sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
}

.sidebar h3:after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: 10px;
}

.sports-list ul li {
    margin-bottom: 5px;
}

.sports-list ul li a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.sports-list ul li a:hover, 
.sports-list ul li a.active {
    background: rgba(255, 255, 255, 0.05);
}

.sports-list ul li a.active {
    background: linear-gradient(90deg, var(--primary-color), rgba(0, 168, 107, 0.5));
    color: #fff;
}

.sports-list ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.sports-list ul li a.active i {
    color: #fff;
}

/* Sports Events */
.sports-events {
    background: linear-gradient(135deg, var(--dark-bg), var(--light-bg));
    border-radius: var(--border-radius);
    padding: 25px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    border-top: 3px solid var(--secondary-color);
}

.sports-events:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 168, 107, 0.1), transparent 70%);
    pointer-events: none;
}

/* Sports Tabs */
.sports-tabs {
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 5px;
    gap: 10px;
    scrollbar-width: thin;
}

.sports-tabs::-webkit-scrollbar {
    height: 5px;
}

.sports-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.sports-tabs::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sports-tab {
    padding: 10px 20px;
    background: var(--dark-bg);
    border-radius: 5px;
    margin-right: 10px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sports-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sports-tab.active {
    background: var(--primary-color);
    color: #fff;
}

/* Event Cards */
.event-card {
    background: linear-gradient(135deg, var(--dark-bg), var(--light-bg));
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-fast);
    margin-bottom: 30px;
    box-shadow: var(--card-shadow);
    border-left: 3px solid transparent;
    position: relative;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-left-color: var(--primary-color);
}

.event-card:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent));
    opacity: 0;
    transition: var(--transition-medium);
}

.event-card:hover:after {
    opacity: 1;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.event-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary-color);
    transition: var(--transition-fast);
}

.event-card:hover .event-header:before {
    width: 7px;
}

.event-title {
    display: flex;
    align-items: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.event-title i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 20px;
    transition: var(--transition-fast);
}

.event-card:hover .event-title i {
    transform: scale(1.2);
}

.event-date {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--muted-text);
    transition: var(--transition-fast);
}

.event-card:hover .event-date {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.event-body {
    padding: 15px;
}

.match-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.match-row:last-child {
    border-bottom: none;
}

.match-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.match-teams {
    flex: 1;
    font-size: 15px;
}

.match-teams .team-name {
    display: flex;
    align-items: center;
}

.team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.match-odds {
    display: flex;
    gap: 10px;
}

.odd-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 5px;
    min-width: 60px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.odd-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

.odd-box.selected {
    background-color: rgba(0, 168, 107, 0.2);
    border-color: var(--primary-color);
}

.odd-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.odd-value {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 16px;
}

.odd-box.selected .odd-value {
    color: var(--primary-color);
}

/* Live Badge */
.live-badge {
    background: #f44336;
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Bet Slip */
.bet-slip {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    border-right: 3px solid var(--primary-color);
    transition: var(--transition-medium);
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

@keyframes bet-slip-glow {
    0% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow: 0 5px 25px rgba(255, 64, 129, 0.15);
    }
}

.bet-slip:hover {
    transform: translateY(-5px);
}

.bet-slip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.bet-slip-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

.bet-slip-clear {
    font-size: 13px;
    color: var(--light-text);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bet-slip-clear:hover {
    opacity: 1;
    color: var(--accent);
}

.bet-slip-count {
    background: var(--primary-color);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.bet-slip-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
}

.bet-slip-icon {
    font-size: 30px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.3);
}

.bet-slip-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 15px;
}

.bet-slip-selections {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.bet-selection {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
}

.selection-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.selection-remove:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #f44336;
}

.selection-match {
    font-size: 14px;
    margin-bottom: 8px;
    padding-right: 20px;
}

.selection-pick {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.selection-type {
    opacity: 0.7;
}

.selection-odds {
    color: var(--secondary-color);
    font-weight: 600;
}

.bet-slip-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.bet-slip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.bet-slip-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.bet-slip-label {
    opacity: 0.7;
}

.bet-slip-value {
    font-weight: 600;
}

.bet-stake {
    margin-bottom: 15px;
}

.stake-input {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stake-currency {
    padding: 0 15px;
    opacity: 0.7;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.stake-field {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 15px;
    color: var(--light-text);
    font-size: 16px;
    font-weight: 600;
}

.stake-field:focus {
    outline: none;
}

.stake-btns {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.stake-quick-btn {
    flex: 1;
    text-align: center;
    padding: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stake-quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bet-slip-footer {
    margin-top: 20px;
    text-align: center;
}

.bet-slip-footer .btn {
    width: 100%;
    padding: 14px 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bet-slip-footer .btn:hover {
    background: #00b978;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 107, 0.3);
}

/* Popular Leagues */
.popular-leagues {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.league-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.league-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.league-badge i {
    margin-right: 5px;
    color: var(--secondary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-box {
    background: var(--dark-bg);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-box i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), #00d696);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.feature-box p {
    font-size: 14px;
    opacity: 0.8;
}

/* Live Match Animation */
.live-match-animation {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-match-vs {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.team-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    position: relative;
}

.team-circle.pulse:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: team-pulse 1.5s infinite;
}

@keyframes team-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.vs-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.match-score {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.live-indicator {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #f44336;
    padding: 3px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    animation: pulse 1.5s infinite;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-indicator:before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

/* Match Stats */
.match-stats {
    background: var(--dark-bg);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
}

.stats-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

.stat-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stat-name {
    flex: 1;
    font-size: 14px;
    opacity: 0.8;
}

.stat-bar {
    flex: 2;
    display: flex;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.stat-value-home, 
.stat-value-away {
    height: 100%;
    transition: all 0.3s ease;
}

.stat-value-home {
    background: var(--primary-color);
}

.stat-value-away {
    background: var(--secondary-color);
}

.stat-percentage {
    flex: 1;
    text-align: right;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
    .bet-slip {
        position: static;
        width: 100%;
        max-width: none;
        border-right: none;
        border-top: 3px solid var(--primary-color);
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .sports-tabs {
        flex-wrap: nowrap;
    }
    
    .match-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    
    .match-teams {
        margin-bottom: 15px;
    }
    
    .match-odds {
        width: 100%;
        justify-content: space-between;
    }
    
    .odd-box {
        flex: 1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-circle {
        width: 60px;
        height: 60px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .sports-tab {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .event-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .event-date {
        margin-top: 5px;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .stat-name, .stat-percentage {
        flex: none;
        width: 100%;
    }
    
    .stat-bar {
        flex: none;
        width: 100%;
    }
} 


.sports-events {
    background-color: var(--dark-bg);
    border-radius: 10px;
    padding: 20px;
    overflow: hidden;
}

.bet-form {
    margin-top: 15px;
}

.bet-amount {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.bet-currency {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
    color: var(--secondary-color);
}

.bet-input {
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    color: var(--light-text);
}

.bet-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.bet-amount-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bet-amount-btn {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 8px;
    color: var(--light-text);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bet-amount-btn:hover {
    background-color: var(--primary-color);
}

.bet-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.bet-detail-label {
    color: rgba(255, 255, 255, 0.7);
}

.bet-detail-value {
    font-weight: 600;
}

.total-return {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 700;
}

.bet-place-btn {
    width: 100%;
    background: var(--button-gradient);
    color: var(--light-text);
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bet-place-btn:hover {
    background: var(--hover-gradient);
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    
    .bet-slip {
        grid-column: 1 / -1;
        max-width: 100%;
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .sports-sidebar {
        display: none;
    }
} 