/* meteotools.css - Premium Meteorological Conversion Tools Styles */

:root {
    --primary-blue: #0056b3;
    --accent-cyan: #00d2ff;
    --accent-orange: #ff9900;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.meteotools-container {
    padding: 20px 0;
}

.tool-section {
    margin-bottom: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.text-muted {
    color: #222 !important; /* Darker for readability */
    font-size: 1.1em;
    font-weight: 400;
}

.tool-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.tool-header h2 {
    color: var(--primary-blue);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 1.4em;
    cursor: pointer; /* Clickable */
    transition: color 0.2s ease;
}

.tool-header h2:hover {
    color: var(--accent-cyan);
}

.tool-header h2::after {
    content: '\f107'; /* fa-angle-down */
    font-family: 'FontAwesome';
    margin-left: auto;
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.tool-header h2.active::after {
    transform: rotate(180deg);
}

.title-hint {
    font-size: 0.75em;
    color: #555;
    font-weight: normal;
    margin-left: 10px;
    vertical-align: middle;
}

.tool-header h2 i {
    margin-right: 15px;
}

/* Glassmorphism Cards */
.conversion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.conversion-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.conversion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.conversion-card .label {
    display: block;
    font-size: 0.9em;
    color: #333; /* Darker */
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-weight: 700;
}

.conversion-card .value {
    display: block;
    font-size: 1.8em;
    font-weight: 800;
    color: var(--primary-blue);
}

.conversion-card .unit {
    font-size: 1.05em; /* Much bigger */
    color: #111; /* Much darker */
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

/* Custom Sliders */
.slider-container {
    padding: 20px 10px;
    position: relative;
}

.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 10px;
    background: #e0e0e0;
    outline: none;
    margin: 20px 0;
}

.wind-slider {
    background: linear-gradient(to right, #e0e0e0, var(--accent-cyan));
}

.temp-slider {
    background: linear-gradient(to right, #00d2ff, #fdfd96, #ff9900, #ff4e50);
}

.press-slider {
    background: linear-gradient(to right, #b2fefa, #0ed2f7);
}

.rain-slider {
    background: linear-gradient(to right, #e0e0e0, #4b79cf);
}

.vis-slider {
    background: linear-gradient(to right, #8e9eab, #eef2f3);
}

.wave-slider {
    background: linear-gradient(to right, #2193b0, #6dd5ed);
}

.hum-slider {
    background: linear-gradient(to right, #e0e0e0, #74ebd5);
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    border: 3px solid var(--primary-blue);
    transition: transform 0.1s ease;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Beaufort Visualizer */
.beaufort-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 5px solid var(--accent-cyan);
    border-radius: 0 8px 8px 0;
}

.beaufort-name {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.2em;
}

.beaufort-desc {
    color: #222; /* Darker for readability */
    font-style: italic;
    margin-top: 5px;
    font-size: 1.1em; /* Larger */
}

/* Apparent Temperature & Dew Point styles */
.dual-input-container {
    background: #f1f4f8;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.input-label {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--primary-blue);
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-val-badge {
    background: var(--primary-blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 700;
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    background: #fff;
    border: 2px solid #eee;
}

.result-box .res-label {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.result-box .res-value {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--primary-blue);
}

.warning-low { color: #00d2ff; }
.warning-med { color: #ff9900; }
.warning-high { color: #ff4e50; }

/* Guide / Instructions Box */
.meteo-description-box {
    margin-bottom: 25px;
}

.meteo-description-box .well {
    background-color: #f9f9f9;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    font-size: 1.15em; /* Larger */
    color: #111; /* Darker */
    line-height: 1.6;
}

#extraInstructions ul {
    list-style: none;
    padding-left: 0;
}

#extraInstructions li {
    margin-bottom: 12px;
    line-height: 1.4;
}

#extraInstructions li i {
    width: 25px; /* Larger icon */
    color: var(--primary-blue);
    font-size: 1.1em;
}

.tool-description {
    display: none; /* Hidden by default */
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    font-size: 1.05em; /* Bigger */
    line-height: 1.6;
    color: #111; /* Much darker */
    font-weight: 400;
}

.tool-description h4 {
    color: var(--primary-blue);
    margin-top: 0;
    font-weight: 700;
}

.comfort-table {
    width: 100%;
    margin-top: 15px;
    border-collapse: collapse;
}

.comfort-table th, .comfort-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.comfort-table th {
    background: #f1f4f8;
    color: var(--primary-blue);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.value-changed {
    animation: pulse 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .conversion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
