/* AI Sports Bet - Professional Trading Platform Design */

:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #10b981;
    --accent-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Neutrals */
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --card: #ffffff;
    --card-dark: #1e293b;
    --border: #e2e8f0;
    --border-dark: #334155;
    
    /* Text */
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Spacing */
    --container: 1280px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h3 { font-size: 1.125rem; }

/* Header */
.header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo .accent {
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 0.5rem;
    z-index: 100;
    gap: 0.25rem;
}

.mobile-nav-link {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0.5rem;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.mobile-nav-link.active {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.mobile-nav-link.highlight {
    background: var(--primary);
    color: white;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-bet {
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.btn-bet:hover {
    background: var(--accent-dark);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a5f 100%);
    color: white;
    padding: 3rem 0;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat .stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-stat .stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta .btn-secondary {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.hero-cta .btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* Live Bar */
.live-bar {
    background: var(--bg-dark);
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
}

.live-ticker {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
    animation: ticker 30s linear infinite;
}

.live-indicator {
    color: var(--danger);
    font-weight: 600;
    animation: pulse 1.5s infinite;
}

.ticker-item {
    white-space: nowrap;
    opacity: 0.9;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Main */
.main {
    padding: 2rem 0 6rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* Cards */
.card {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 1.25rem;
}

.card-large {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.card-header h2 {
    font-size: 1rem;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Value Bet Items */
.value-bets-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.value-bet-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: 1px solid var(--border);
}

.match-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.league-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
}

.league-badge.epl { background: #3d195b; }
.league-badge.laliga { background: #ee8707; }
.league-badge.seriea { background: #024494; }
.league-badge.bundesliga { background: #d20515; }

.teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.vs {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.kickoff {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: auto;
}

.bet-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bet-details > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bet-details .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bet-details .pick {
    font-weight: 600;
    color: var(--primary);
}

.bet-details .odds {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.bet-details .odds.highlight {
    color: var(--accent);
}

.bet-details .value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.bet-details .value.positive {
    color: var(--accent);
}

.bet-details .value.negative {
    color: var(--danger);
}

.confidence-bar {
    height: 24px;
    background: var(--border);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 100px;
    transition: width 0.5s ease;
}

.confidence-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

/* Chart */
.chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 1rem;
}

.chart-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    text-align: center;
}

.chart-stat {
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.chart-stat .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.chart-stat .value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
}

.chart-stat .value.positive {
    color: var(--accent);
}

/* Quick Stats */
.quick-stats {
    display: grid;
    gap: 0.75rem;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-info .stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.stat-info .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Period Select */
.period-select {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    font-size: 0.8rem;
    background: var(--card);
    cursor: pointer;
}

/* Upcoming List */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    gap: 1rem;
}

.match-preview {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.match-preview .league {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.match-preview .match {
    font-weight: 600;
    font-size: 0.9rem;
}

.match-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.match-meta .time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.match-meta .status {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-xs);
    font-weight: 500;
}

.status.pending {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.status.upcoming {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* CTA Card */
.card-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 2rem;
}

.card-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-cta .btn-primary {
    background: white;
    color: var(--primary);
}

.card-cta .btn-primary:hover {
    background: var(--bg);
}

/* Form Table */
.form-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.form-row .team-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-badges {
    display: flex;
    gap: 0.25rem;
}

.form-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
}

.form-badge.win { background: var(--accent); }
.form-badge.draw { background: var(--warning); }
.form-badge.loss { background: var(--danger); }

.form-points {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    min-width: 50px;
    text-align: right;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h4 {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: white;
}

.footer-links .small {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.footer-links .helpline {
    font-size: 0.85rem;
    color: var(--warning);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-bottom .disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* Responsible Banner */
.responsible-banner {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    background: var(--warning);
    color: var(--bg-dark);
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 99;
}

/* Analysis Page */
.analysis-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a5f 100%);
    color: white;
    padding: 2rem 0;
}

.analysis-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.analysis-team {
    text-align: center;
}

.team-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.analysis-vs {
    font-size: 1.5rem;
    font-weight: 700;
    opacity: 0.5;
}

.analysis-meta {
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    gap: 1rem;
}

.stat-card {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.stat-card h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.stat-bar .label {
    font-size: 0.75rem;
    min-width: 80px;
}

.stat-bar .bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
}

.stat-bar .bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 100px;
}

.stat-bar .value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

/* H2H Table */
.h2h-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.h2h-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.h2h-date {
    color: var(--text-muted);
    font-size: 0.75rem;
    min-width: 80px;
}

.h2h-score {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.h2h-teams {
    flex: 1;
    text-align: center;
}

/* League Table */
.league-table {
    overflow-x: auto;
}

.league-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.league-table th,
.league-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.league-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.league-table tr:hover {
    background: var(--bg);
}

.league-table .pos {
    font-weight: 700;
    color: var(--primary);
    width: 30px;
}

.league-table .team-cell {
    font-weight: 500;
}

.league-table .num {
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
}

/* Value Bets Page */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Join Page */
.join-hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.join-hero h1 {
    margin-bottom: 1rem;
}

.join-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.bonus-badge {
    display: inline-block;
    background: white;
    color: var(--accent-dark);
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.join-steps {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.step-card h3 {
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Benefits */
.benefits-grid {
    display: grid;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
}

.benefit-icon {
    font-size: 1.5rem;
}

.benefit-content h4 {
    margin-bottom: 0.25rem;
}

.benefit-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (min-width: 640px) {
    .mobile-nav {
        display: none !important;
    }
    
    .responsible-banner {
        bottom: 0;
    }
    
    .main {
        padding-bottom: 3rem;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .join-steps {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card-large {
        grid-column: span 2;
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* Mobile Nav Active */
@media (max-width: 639px) {
    .mobile-nav {
        display: flex;
    }
}
