/* Solar Station Live - Firmware Update Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --bg-gradient-start: #1e3a8a;
    --bg-gradient-end: #3b82f6;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.header .subtitle {
    opacity: 0.9;
    font-size: 1rem;
    position: relative;
}

/* Language Switcher */
.lang-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.lang-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    color: white;
    transition: all 0.2s ease;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(255,255,255,0.3);
}

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

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.card h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card h2 .icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h2 .icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Requirements List */
.requirements-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.requirements-list li .req-icon {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.requirements-list li .req-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.requirements-list li .req-text {
    flex: 1;
}

.requirements-list li .req-text strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.requirements-list li .req-text span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Steps */
.steps-list {
    list-style: none;
    counter-reset: step;
}

.steps-list li {
    counter-increment: step;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.steps-list li:last-child {
    border-bottom: none;
}

.steps-list li::before {
    content: counter(step);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.steps-list li .step-content {
    flex: 1;
    padding-top: 6px;
}

.steps-list li .step-content strong {
    display: block;
    margin-bottom: 4px;
}

.steps-list li .step-content .note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 3px solid var(--warning-color);
}

/* Install Button Section */
.install-section {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid var(--success-color);
}

.install-section h2 {
    justify-content: center;
    color: #059669;
    margin-bottom: 24px;
}

esp-web-install-button {
    --esp-tools-button-color: var(--success-color);
    --esp-tools-button-text-color: white;
}

esp-web-install-button::part(button) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

esp-web-install-button::part(button):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

/* Version Badge */
.version-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-top: 12px;
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 12px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.4rem;
    }
    
    .lang-switcher {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .card {
        padding: 20px;
    }
    
    .requirements-list li {
        flex-direction: column;
        text-align: center;
    }
    
    .steps-list li {
        flex-direction: column;
        text-align: center;
    }
    
    .steps-list li::before {
        margin: 0 auto 12px;
    }
}
