/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0a0a0a !important;
    color: #ffffff !important;
    line-height: 1.6;
    font-size: 14px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Special full-width container for table section */
.table-section .container {
    max-width: 100%;
    padding: 0 20px;
}

/* Custom Header */
.header {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #1f2937;
    position: relative;
    margin-top: 80px;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 20px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.last-update {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center !important;
}

/* Hero Section */
.market-hero {
    padding: 40px 0 40px;
    text-align: center;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

.market-hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.market-hero .subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto 80px;
    font-weight: 500;
    line-height: 1.6;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #111111;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Filters Section */
.filters-section {
    padding: 30px 20px;
    background: #111111;
    border-top: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
    margin-bottom: 30px;
    border-radius: 16px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    font-size: 0.875rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 600;
    display: block;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid #374151;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.filter-btn:hover {
    background: #374151;
    color: white;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Legend Section */
.legend-section {
    padding: 30px 0;
    background: #0a0a0a;
}

.legend-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

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

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #9ca3af;
}

.legend-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid #374151;
    border-radius: 4px;
    background: #111111;
    font-size: 11px;
    font-weight: 600;
    color: #3b82f6;
}

/* Table Section */
.table-section {
    padding: 40px 0;
    background: #0a0a0a;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
    background: #111111;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Table Styles */
.strategies-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: #111111;
    min-width: 100%;
}

.strategies-table thead {
    background: #1f2937;
}

.strategies-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #374151;
    white-space: nowrap;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
    cursor: help;
}

.strategies-table th:first-child {
    padding-left: 20px;
    min-width: 200px;
}

.strategies-table tbody tr {
    border-bottom: 1px solid #1f2937;
    transition: background 0.15s ease;
}

.strategies-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

.strategies-table td {
    padding: 12px 8px;
    color: #e5e7eb;
}

.strategies-table td:first-child {
    padding-left: 20px;
    font-weight: 600;
    color: #ffffff;
}

/* Feature Cells */
.feature-cell {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

/* Symbol Styles with status colors */
.symbol-yes {
    color: #22c55e;
    cursor: help;
    background: none;
    padding: 0;
    border: none;
}

.symbol-partial {
    color: #fbbf24;
    cursor: help;
    background: none;
    padding: 0;
    border: none;
}

.symbol-no {
    color: #ef4444;
    cursor: help;
    background: none;
    padding: 0;
    border: none;
}

/* Risk Indicators */
.risk-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.risk-low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.risk-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.risk-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Protocol Info Column */
.protocol-info {
    font-size: 0.75rem;
    color: #9ca3af;
    line-height: 1.4;
}

/* Info Cards Section */
.info-section {
    padding: 40px 0;
    background: #0a0a0a;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.info-card {
    background: #111111;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-card li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

/* Insurance table special styling */
.table-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
}


/* Tooltip styles */
.tooltip {
    display: none;
    position: absolute;
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #374151;
    pointer-events: none;
}


/* Responsive Design */
@media (max-width: 768px) {
    .header {
        top: 60px;
        padding: 15px 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .last-update {
        font-size: 0.8rem;
    }
    
    .market-hero {
        padding: 160px 0 40px !important;
    }
    
    .market-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 40px;
        line-height: 1.2;
    }
    
    .market-hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 80px;
        line-height: 1.5;
    }
    
    .strategies-table {
        font-size: 0.75rem;
    }
    
    .stat-card {
        min-width: 100%;
    }

    .table-container {
        padding: 10px;
    }


    .container {
        padding: 0 20px;
    }

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .legend-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .legend-item {
        font-size: 0.8rem;
    }

    .legend-symbol {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card {
        padding: 20px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

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

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

@media (max-width: 480px) {
    .market-hero h1 {
        font-size: 1.5rem;
    }

    .market-hero .subtitle {
        font-size: 1rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .filters-section {
        padding: 20px 10px;
    }

    .filter-group {
        margin-bottom: 15px;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    .table-container {
        padding: 5px;
        border-radius: 8px;
    }

    .strategies-table th,
    .strategies-table td {
        padding: 8px 4px;
    }

    .strategies-table th:first-child,
    .strategies-table td:first-child {
        padding-left: 10px;
    }
}

/* Additional mobile enhancements */
@media (max-width: 1024px) {
    .table-container {
        padding: 15px;
    }

    .strategies-table {
        min-width: 100%;
    }
}

/* Print styles */
@media print {
    .header,
    .filters-section {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .strategies-table {
        font-size: 10px;
    }
}