:root {
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
}

/* Design 3: Card-Based with Icon Integration */
.design-3 {
    padding: 2rem 0;
    /*background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);*/
    border-radius: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1400px;
}

.design-3 .header-card {
    max-width: 900px;
    margin: 0 auto;
    background: white !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--gray-200) !important;
    position: relative;
    height: auto !important;
    min-width: auto !important;
    text-align: left !important;
    display: block !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.design-3 .header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.design-3 .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    text-align: center;
    display: block;
}

.design-3 .page-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    text-align: center;
    display: block;
}

.design-3 .controls-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1.5rem !important;
    padding: 1rem !important;
    background: var(--gray-50) !important;
    border-radius: 0.75rem !important;
    border: 1px solid var(--gray-200) !important;
    flex-wrap: wrap !important;
    width: auto !important;
    height: auto !important;
}

.design-3 .control-label {
    font-weight: 600 !important;
    color: var(--gray-700) !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.design-3 .styled-select {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border: 2px solid var(--primary-200);
    border-radius: 0.5rem;
    background: white;
    color: var(--gray-800);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    max-width:300px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.design-3 .styled-select:hover {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.design-3 .styled-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* State card styles */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.state-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.state-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-400) 0%, var(--primary-600) 100%);
}

.state-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.state-card:hover::before {
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

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

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.state-rank {
    background: var(--primary-100);
    color: var(--primary-700);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.state-warming-main {
    text-align: center;
    margin-bottom: 1.5rem;
}

.warming-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'JetBrains Mono', monospace;
}

.warming-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.seasonal-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.season-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem;
    background: var(--gray-50);
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.season-item:hover {
    background: var(--gray-100);
    transform: scale(1.05);
}

.state-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: center;
}

/* Warming map container */
.warming-map-container {
    width: 100%;
    max-width: 800px;
    margin-bottom: 3rem;
}

.map-content {
    position: relative;
    padding: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .design-3 {
        padding: 1rem 0;
        margin-bottom: 1rem;
    }
    
    .design-3 .header-card {
        margin: 0 1rem;
        padding: 1.5rem !important;
    }
    
    .design-3 .page-title {
        font-size: 1.75rem;
    }
    
    .design-3 .page-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .design-3 .controls-wrapper {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 1rem !important;
        width: 100% !important;
    }
    
    /* Make toggle switches mobile-friendly */
    .toggle-switch {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .toggle-btn {
        flex: 1 !important;
        text-align: center !important;
        min-width: 0 !important;
    }
    
    /* Make select dropdown mobile-friendly */
    .design-3 .styled-select {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 1rem;
    }

    .state-warming-main .warming-value {
        font-size: 1.5rem;
    }
    
    /* Map container mobile fixes */
    .warming-map-container {
        margin: 0 1rem 2rem 1rem;
        max-width: none;
    }
    
    .map-content {
        padding: 1rem;
    }
    
    /* Colorbar mobile styles */
    #colorbar {
        margin: 1rem 0 !important;
        padding: 0 1rem;
    }
    
    #colorbarTitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .design-3 .header-card {
        margin: 0 0.5rem;
        padding: 1rem !important;
    }
    
    .design-3 .page-title {
        font-size: 1.5rem;
    }
    
    .design-3 .page-subtitle {
        font-size: 0.85rem;
    }
    
    .design-3 .controls-wrapper {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
    }
    
    .toggle-btn {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    
    .design-3 .styled-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .seasonal-breakdown {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .season-item {
        justify-content: center;
    }

    .state-card {
        padding: 1rem;
    }

    .feature-title {
        font-size: 1.1rem;
    }

    .warming-value {
        font-size: 1.25rem;
    }
    
    .features-grid {
        margin: 0 0.5rem;
    }
    
    /* Map container mobile fixes for very small screens */
    .warming-map-container {
        margin: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .map-content {
        padding: 0.5rem;
    }
    
    /* Colorbar mobile styles for very small screens */
    #colorbar {
        margin: 0.75rem 0 !important;
        padding: 0 0.5rem;
    }
    
    #colorbarTitle {
        font-size: 0.8rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2;
    }
}