/* Dew Point Calculator - WordPress Plugin Styles */

.dpc-container {
    max-width: 600px;
    margin: 0 auto 2rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.75rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    box-sizing: border-box;
}

.dpc-header { margin-bottom: 1.25rem; }

.dpc-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
    display: flex;
    align-items: center;
}

.dpc-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0 !important;
}

/* Unit toggle */
.dpc-unit-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
    min-width: 140px;
}

.dpc-unit-btn {
    flex: 1;
    padding: 7px 20px;
    border: none;
    border-radius: 6px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.15s;
}

.dpc-unit-btn.active {
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Inputs */
.dpc-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dpc-input-group { display: flex; flex-direction: column; }

.dpc-label {
    font-size: 11px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dpc-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    background: #f9fafb;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.dpc-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
    background: #fff;
}

/* Slider */
.dpc-slider-section { margin-bottom: 1.25rem; }

.dpc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.dpc-slider-value {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 9px;
    border-radius: 4px;
}

.dpc-slider {
    width: 100%;
    height: 6px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.dpc-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Button */
.dpc-calculate-btn {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.25rem;
    transition: background 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpc-calculate-btn:hover { background: #1d4ed8; }
.dpc-calculate-btn:active { transform: scale(0.99); }

/* Results */
.dpc-results {
    border-top: 1px solid #f3f4f6;
    padding-top: 1.25rem;
}

.dpc-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1rem;
}

.dpc-result-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
}

.dpc-main-card {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.dpc-result-value {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.dpc-main-card .dpc-result-value { color: #1d4ed8; }

.dpc-result-label {
    font-size: 10px;
    color: #6b7280;
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Humidity gauge */
.dpc-gauge-section { margin-bottom: 1rem; }

.dpc-gauge-bar {
    height: 10px;
    border-radius: 5px;
    background: #e5e7eb;
    overflow: hidden;
    margin-bottom: 5px;
}

.dpc-gauge-fill {
    height: 100%;
    border-radius: 5px;
    background: #3b82f6;
    transition: width 0.4s, background 0.4s;
}

.dpc-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9ca3af;
}

/* Comfort banner */
.dpc-comfort-banner {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.dpc-comfort-banner svg { flex-shrink: 0; margin-top: 1px; }

.dpc-comfort-dry       { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.dpc-comfort-ok        { background: #f0fdf4; color: #065f46; border: 1px solid #86efac; }
.dpc-comfort-sticky    { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.dpc-comfort-oppressive{ background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* Formula box */
.dpc-formula-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    color: #475569;
    line-height: 1.8;
}

.dpc-formula-box code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 11.5px;
    color: #1e293b;
    background: transparent;
    margin: 3px 0;
}

.dpc-formula-box small {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 480px) {
    .dpc-container { padding: 1.25rem; }
    .dpc-inputs { grid-template-columns: 1fr; }
    .dpc-results-grid { grid-template-columns: 1fr 1fr; }
    .dpc-result-value { font-size: 18px; }
}
