/* WCAG Color Contrast Checker Stylesheet */

.hero {
    padding: 3rem 1.5rem;
    text-align: center;
    background: #07070a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero .badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 10px;
}

.hero .accent {
    color: #a855f7;
}

.hero .subtitle {
    font-size: 1.05rem;
    color: #9ba1b4;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Card Frame */
.calculator-card {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: #0f1016;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* Color Picker side-by-side */
.color-picker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-panel {
    background: #07070a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.input-panel h3 {
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    color: #5a5f73;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.color-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.color-control input[type="color"] {
    width: 60px;
    height: 48px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

.color-control input[type="text"] {
    flex-grow: 1;
    background: #0d0e12;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    padding: 10px 14px;
    outline: none;
    transition: all 0.25s ease;
}

.color-control input[type="text"]:focus {
    border-color: #a855f7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

/* Metrics Dashboard Panel */
.metrics-panel {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    background: #07070a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    align-items: center;
}

.ratio-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 2rem;
}

.ratio-lbl {
    font-size: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    color: #5a5f73;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.ratio-val {
    font-size: 2.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: #fff;
}

.adjust-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adjust-lbl {
    font-size: 0.7rem;
    font-family: 'Orbitron', sans-serif;
    color: #5a5f73;
    letter-spacing: 0.05em;
}

.adjust-actions {
    display: flex;
    gap: 12px;
}

.btn-adjust {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    color: #a855f7;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.btn-adjust:hover {
    background: #a855f7;
    color: #fff;
    border-color: #a855f7;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
}

/* Status Cards Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-card {
    background: #07070a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.25rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.status-title {
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    color: #9ba1b4;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
}

.status-req {
    font-size: 0.7rem;
    color: #5a5f73;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
}

/* Custom Pass/Fail styles */
.pass-state {
    border-color: rgba(16, 185, 129, 0.3) !important;
    background: rgba(16, 185, 129, 0.02) !important;
}

.pass-state .status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.fail-state {
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.02) !important;
}

.fail-state .status-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Preview Box styling */
.preview-container {
    background: #07080c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.75rem;
    transition: all 0.25s ease;
}

.preview-container h3 {
    font-size: 0.85rem;
    font-family: 'Orbitron', sans-serif;
    color: #5a5f73;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.preview-text-sample {
    padding: 1rem;
    border-radius: 6px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.preview-text-sample:last-child {
    margin-bottom: 0;
}

/* Footer elements matching */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #07070a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #5a5f73;
    font-size: 0.9rem;
}

footer a {
    color: #9ba1b4;
    margin: 0 8px;
}

footer a:hover {
    color: #a855f7;
}

/* Responsiveness */
@media (max-width: 768px) {
    .color-picker-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .metrics-panel {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
    }
    .ratio-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 1.25rem;
    }
    .adjust-actions {
        justify-content: center;
    }
    .status-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .status-grid {
        grid-template-columns: 1fr;
    }
    .adjust-actions {
        flex-direction: column;
        gap: 8px;
    }
}
