/* =====================================================
   GIMMIEABET.COM ENHANCED DASHBOARD STYLES
   Professional Sports Analytics Platform
===================================================== */

/* Root Variables - Professional Color Palette */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 10px 30px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.6;
}

/* Enhanced Dashboard Container */
.enhanced-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
}

/* =====================================================
   HEADER & NAVIGATION STYLES
===================================================== */

.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--primary-color);
    opacity: 0.8;
    margin: 0;
    font-weight: 500;
}

.header-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header-stat {
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.header-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.header-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.header-stat-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   TAB NAVIGATION STYLES
===================================================== */

.tab-buttons {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tab-button {
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: var(--border-radius) !important;
    border: none !important;
    box-shadow: var(--shadow-light) !important;
    transition: var(--transition) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 160px !important;
    justify-content: center !important;
}

.tab-button.active {
    background: var(--gradient-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium) !important;
}

.tab-button:hover:not(.active) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium) !important;
}

/* =====================================================
   CONTENT CONTAINER STYLES
===================================================== */

.tab-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px 50px;
}

/* =====================================================
   FILTERS SECTION STYLES
===================================================== */

.filters-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   PICK CARD STYLES - ENHANCED
===================================================== */

.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.pick-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.pick-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.pick-card.high-confidence::before {
    background: var(--gradient-success);
}

.pick-card.medium-confidence::before {
    background: var(--gradient-warning);
}

.pick-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pick-header-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sport-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sport-badge.nfl {
    background: linear-gradient(135deg, #013369 0%, #013369 100%);
}

.sport-badge.mlb {
    background: linear-gradient(135deg, #c8102e 0%, #c8102e 100%);
}

.week-badge {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.confidence-badge {
    background: var(--gradient-success);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-light);
}

.game-info {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-align: center;
}

.pick-details {
    background: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
    padding: 12px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.pick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--primary-color);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   ANALYSIS SECTION STYLES - ENHANCED
===================================================== */

.pick-analysis {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid var(--secondary-color);
}

.detailed-analysis {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-style: italic;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.basic-analysis {
    color: var(--primary-color);
    opacity: 0.7;
    font-style: italic;
}

/* =====================================================
   PERFORMANCE METRICS STYLES
===================================================== */

.performance-metrics {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.metric-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.metric-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-light);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    display: block;
    margin-bottom: 5px;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .main-title {
        font-size: 2rem;
    }

    .header-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .tab-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .filters-section {
        flex-direction: column;
        gap: 20px;
    }

    .picks-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pick-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* =====================================================
   LOADING & ANIMATION STYLES
===================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pick-card {
    animation: fadeInUp 0.6s ease-out;
}

.confidence-badge {
    animation: pulse 2s infinite;
}

/* =====================================================
   STATUS INDICATORS
===================================================== */

.status-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: var(--shadow-light);
}

.status-active {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.status-pending {
    background: var(--warning-color);
}

.status-completed {
    background: var(--info-color);
}

/* =====================================================
   DEBUGGING STYLES
===================================================== */

.debug-output {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.debug-output pre {
    background: #f4f4f9;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.debug-output h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.debug-output p {
    margin: 5px 0;
}

.debug-output .highlight {
    background: rgba(52, 152, 219, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* =====================================================
   DEBUGGING SCRIPT STYLES
===================================================== */

.debug-script {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.debug-script pre {
    background: #f4f4f9;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.debug-script h4 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.debug-script p {
    margin: 5px 0;
}

.debug-script .highlight {
    background: rgba(52, 152, 219, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}