
/* =============================================
   MOBILE RESPONSIVE OVERHAUL
   ============================================= */

@media (max-width: 768px) {
    /* --- NAVBAR FIX --- */
    .nav-container {
        padding: 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a:not(.btn-primary):not(.btn-upgrade) {
        font-size: 0.85rem;
        padding: 0.4rem 0.5rem;
    }
    
    .nav-links .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    /* --- TICKER FIX --- */
    .ticker-bar {
        padding: 0.5rem 0.75rem;
        overflow: visible;
    }
    
    .ticker-inner {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
    
    .ticker-chip {
        flex-shrink: 0;
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    /* --- HERO FIX --- */
    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1.25rem;
        gap: 1.5rem;
    }
    
    .hero-content {
        order: -1 !important;
    }
    
    .hero-preview {
        order: 1 !important;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle br {
        display: none;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-cta .btn-large {
        text-align: center;
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }
    
    .preview-card {
        transform: none;
    }
    
    .preview-edge {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .edge-game {
        font-size: 0.9rem;
        min-width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .edge-details {
        font-size: 0.8rem;
    }
    
    .edge-value {
        margin-left: auto;
    }
    
    /* --- SPORTS BADGES --- */
    .sports-badges {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }
    
    .sport-pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.65rem;
    }
    
    /* --- HOW IT WORKS --- */
    .steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step {
        padding: 1.5rem 1rem;
    }
    
    .step-icon {
        font-size: 2.5rem;
    }
    
    /* --- DASHBOARD PREVIEW --- */
    .section-alt {
        padding: 3rem 1rem;
    }
    
    .dashboard-preview {
        border-radius: 8px;
        overflow-x: auto;
    }
    
    .preview-table-header,
    .preview-table-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        font-size: 0.75rem;
        padding: 0.6rem 0.75rem;
    }
    
    /* Hide Pinnacle + Market columns on mobile */
    .preview-table-header span:nth-child(2),
    .preview-table-header span:nth-child(4),
    .preview-table-row span:nth-child(2),
    .preview-table-row span:nth-child(4) {
        display: none;
    }
    
    /* --- INFO GRID (Why Pinnacle) --- */
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.25rem;
    }
    
    /* --- PRICING --- */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    /* --- FAQ --- */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-item {
        padding: 1.25rem;
    }
    
    /* --- CTA --- */
    .cta-section {
        padding: 3rem 1.5rem;
        margin: 2rem 1rem;
        border-radius: 16px;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    /* --- SECTIONS --- */
    .section {
        padding: 3rem 1.25rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-top: -0.75rem;
    }
}

/* Extra small screens (iPhone SE etc.) */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    .nav-links .btn-primary {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .ticker-chip {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Mobile scrollable table */
.edges-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.edges-table {
    min-width: 700px;
    width: 100%;
}

/* Sport badge colors */
.sport-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white !important;
    text-transform: uppercase;
    display: inline-block;
}

.sport-badge.sport-nba { background: #C9082A; }
.sport-badge.sport-nhl { background: #041E42; border: 1px solid #fff; }
.sport-badge.sport-ncaab { background: #0033A0; }
.sport-badge.sport-nfl { background: #013369; }
.sport-badge.sport-ufc { background: #D20A0A; }
.sport-badge.sport-la-liga { background: #FF6B00; }
.sport-badge.sport-epl { background: #3D195B; }
.sport-badge.sport-champions-league { background: #1A237E; }
.sport-badge.sport-bundesliga { background: #D20515; }
.sport-badge.sport-serie-a { background: #024494; }
.sport-badge.sport-mls { background: #4A7729; }

/* Edge colors */
.edge-pct { color: #4ade80; font-weight: 600; }
.edge-pct.edge-hot { color: #22c55e; font-weight: 700; font-size: 1.1em; }

/* Trade button */
.btn-trade {
    background: #10b981;
    color: #000 !important;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-trade:hover {
    background: #34d399;
}

/* Payment mobile fixes */
@media (max-width: 768px) {
    .payment-page {
        padding: 1rem;
    }
    
    .payment-page h1 {
        font-size: 1.5rem;
    }
    
    .payment-card {
        padding: 1rem;
    }
    
    .payment-step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .wallet-input-group,
    .tx-input-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wallet-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .wallet-display code {
        font-size: 0.7rem;
        word-break: break-all;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

/* Dashboard mobile card layout */
@media (max-width: 768px) {
    .edges-table {
        font-size: 0.8rem;
        min-width: unset;
        width: 100%;
    }
    
    .edges-table thead {
        display: none;
    }
    
    .edges-table tbody tr {
        display: block;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        margin-bottom: 0.75rem;
        padding: 1rem;
    }
    
    .edges-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.3rem 0;
        border: none;
    }
    
    .edges-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.7rem;
        color: var(--text-muted);
        text-transform: uppercase;
    }
    
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .upgrade-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
