/* ============================================
   VALUE BETS PAGE STYLES
   ============================================ */

.value-bets-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.value-bets-header {
    text-align: center;
    margin-bottom: 30px;
}

.value-bets-header h1 {
    font-size: 28px;
    color: #ffffff !important;
    margin-bottom: 10px;
}

.value-bets-header p {
    color: #ffffff;
    font-size: 16px;
}

/* Date navigation */
.date-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-nav input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

.date-nav-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.date-nav-btn:hover {
    background: #1d4ed8;
    color: white;
    text-decoration: none;
}

.date-nav-btn:active {
    transform: scale(0.95);
}

.date-nav-btn.secondary {
    background: #64748b;
}

.date-nav-btn.secondary:hover {
    background: #475569;
    color: white;
}

.gold-badge-large {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

.disclaimer-box {
    background: #fef3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #856404;
}

/* Sport Tabs */
.sport-tabs-wrapper {
    position: relative;
    margin-bottom: 25px;
}

.sport-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Hide scrollbar but allow scrolling */
.sport-tabs::-webkit-scrollbar {
    display: none;
}

/* Scroll fade indicator for mobile - hidden on desktop */
.sport-tabs-wrapper::after {
    display: none;
}

.sport-tab {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    background: #fff;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sport-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
    text-decoration: none;
}

.sport-tab:active {
    transform: scale(0.95);
}

.sport-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.sport-tab.active:hover {
    color: #fff;
}

/* Filter Bar */
.filter-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-bar label {
    font-size: 13px;
    color: #64748b;
    margin-right: 5px;
}

.filter-bar select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

/* Value Bet Cards */
.value-bet-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

.value-bet-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.value-bet-card.strong-value {
    border-left: 4px solid #dc2626;
}

.value-bet-card.good-value {
    border-left: 4px solid #f59e0b;
}

.value-bet-card.marginal-value {
    border-left: 4px solid #94a3b8;
}

.bet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.bet-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-logos {
    display: flex;
    align-items: center;
    gap: 4px;
}

.team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
}

.team-logo-placeholder {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 4px;
}

.vs-text {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.bet-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bet-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e3a5f;
}

.bet-type-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #64748b;
    margin-left: 8px;
}

.edge-display {
    text-align: right;
}

.edge-value {
    font-size: 24px;
    font-weight: 700;
}

.edge-value.strong { color: #dc2626; }
.edge-value.good { color: #f59e0b; }
.edge-value.marginal { color: #64748b; }

.edge-label {
    font-size: 12px;
    color: #64748b;
}

.bet-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #475569;
}

.bet-details .label {
    color: #94a3b8;
    font-size: 12px;
}

.bet-matchup {
    font-size: 13px;
    color: #64748b;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-game-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
}

.view-game-link:hover {
    text-decoration: underline;
}

.view-game-link:active {
    opacity: 0.7;
}

/* Edge Scale Legend */
.edge-legend {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 13px;
}

.edge-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* No bets message */
.no-bets-message {
    text-align: center;
    padding: 40px;
    color: #ffffff;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
}

.no-bets-message p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Upgrade Banner */
.upgrade-banner {
    background: linear-gradient(135deg, #ffd700 0%, #ffb800 100%);
    border: 2px solid #cc9900;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.3);
}

.upgrade-banner h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.upgrade-banner p {
    color: #555;
    margin-bottom: 15px;
    font-size: 16px;
}

.btn-upgrade {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
}

.btn-upgrade:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.btn-upgrade:active {
    transform: scale(0.98);
}

/* Blur overlay for non-subscribers */
.blur-content {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .value-bets-container {
        padding: 15px 10px;
    }
    
    .value-bets-header h1 {
        font-size: 22px;
    }
    
    .value-bets-header p {
        font-size: 14px;
    }
    
    .gold-badge-large {
        display: block;
        margin: 8px auto 0;
        width: fit-content;
    }
    
    .disclaimer-box {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    /* Sport tabs wrapper for scroll indicator */
    .sport-tabs-wrapper {
        position: relative;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    /* Fade indicator on right edge */
    .sport-tabs-wrapper::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 15px;
        width: 40px;
        background: linear-gradient(to right, transparent, rgba(30, 58, 95, 0.9));
        pointer-events: none;
        display: block;
    }
    
    /* Sport tabs - horizontal scroll */
    .sport-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        gap: 6px;
        padding: 5px 10px 15px 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .sport-tab {
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
    }
    
    /* Extra padding at end for scroll */
    .sport-tabs::after {
        content: '';
        flex-shrink: 0;
        width: 30px;
        min-width: 30px;
    }
    
    /* Filter bar - stack vertically */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .date-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .date-nav input[type="date"] {
        padding: 10px 8px;
        font-size: 16px; /* Prevent iOS zoom */
        min-width: 140px;
    }
    
    .date-nav-btn {
        padding: 10px 14px;
    }
    
    .filter-bar > div:not(.date-nav) {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .filter-bar select {
        flex: 1;
        max-width: 150px;
        padding: 10px 8px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .filter-bar label {
        font-size: 14px;
    }
    
    /* Edge legend */
    .edge-legend {
        flex-direction: column;
        gap: 8px;
        padding: 12px 15px;
        font-size: 12px;
    }
    
    .edge-legend span {
        justify-content: center;
    }
    
    /* Value bet cards */
    .value-bet-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .bet-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .bet-header-left {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
    }
    
    .team-logos {
        flex-shrink: 0;
    }
    
    .team-logo,
    .team-logo-placeholder {
        width: 28px;
        height: 28px;
    }
    
    .bet-info {
        flex: 1;
    }
    
    .bet-title {
        font-size: 16px;
    }
    
    .bet-type-badge {
        margin-left: 0;
        margin-top: 4px;
        display: inline-block;
    }
    
    .edge-display {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .edge-value {
        font-size: 20px;
    }
    
    .edge-label {
        font-size: 11px;
    }
    
    .bet-details {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .bet-matchup {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .view-game-link {
        align-self: flex-end;
    }
    
    /* Upgrade banner */
    .upgrade-banner {
        padding: 20px 15px;
    }
    
    .upgrade-banner h3 {
        font-size: 18px;
    }
    
    .upgrade-banner p {
        font-size: 14px;
    }
    
    .btn-upgrade {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    /* No bets message */
    .no-bets-message {
        padding: 30px 15px;
    }
    
    .no-bets-message p {
        font-size: 14px;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .value-bets-header h1 {
        font-size: 20px;
    }
    
    .sport-tab {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .date-nav {
        gap: 5px;
    }
    
    .date-nav input[type="date"] {
        min-width: 120px;
        padding: 8px 5px;
    }
    
    .date-nav-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .bet-title {
        font-size: 15px;
    }
    
    .edge-value {
        font-size: 18px;
    }
}

