/* ====================================================
   FONTS
==================================================== */
@font-face {
    font-family: "Digital-7";
    src: url("../fonts/digital-7.ttf") format("truetype");
}

@font-face {
    font-family: "DS-Digital";
    src: url("../fonts/DS-DIGI.TTF") format("truetype");
}


/* ====================================================
   BASIS LAYOUT
==================================================== */
body {
    background: #dddddd;
    color: #000;
    font-family: Arial, sans-serif;
    text-align: center;
}

h1, h2 {
    margin-top: 20px;
}


/* ====================================================
   ALGEMENE GAUGE LAYOUT
==================================================== */
.gauge-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
}

.gauge-block {
    text-align: center;
}

.label {
    margin-top: 10px;
    font-size: 16px;
}


/* ====================================================
   THERMOMETER LABELS
==================================================== */
#tempLabel {
    font-size: 16px;
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

#tempLabel .min {
    color: #4aa3ff;
    font-weight: 600;
}

#tempLabel .max {
    color: #ff4a4a;
    font-weight: 600;
}

/* ====================================================
   TEMPERATUUR LABEL + TREND (zoals barometer)
==================================================== */

.temp-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px; /* ruimte tussen tekst en pijl */
}

.temp-trend {
    font-size: 1.2rem;
    opacity: 2;
}

/* zelfde kleuren als barometer */
.tempTrendUp { color: #4caf50; }
.tempTrendDown { color: #f44336; }
.tempTrendSteady { color: #9e9e9e; }
/* ====================================================
   WINDRICHTING
==================================================== */
#windDirLabel {
    font-size: 16px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

.windArrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
}


/* ====================================================
   WIND GUST
==================================================== */
#windGustLabel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.gustMax {
    color: #ff4a4a;
    font-weight: 600;
}


/* ====================================================
   BAROMETER
==================================================== */
#baroLabel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px; /* ruimte tussen pijl en hi/lo */
}

.baroLow {
    color: #4aa3ff;
    font-weight: 600;
}

.baroHigh {
    color: #ff4a4a;
    font-weight: 600;
}

#baroTrendLabel {
    font-size: 1rem;
    opacity: 2;
}

.trendUp {
    color: #4caf50;   /* groen */
}

.trendDown {
    color: #f44336;   /* rood */
}

.trendSteady {
    color: #9e9e9e;   /* grijs */
}



/* ====================================================
   SOLAR
==================================================== */
#solarLabel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.solarMax {
    color: #ff4a4a;
    font-weight: 600;
}



/* ====================================================
   HUMIDITY
==================================================== */
#humidityLabel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.humMin {
    color: #4aa3ff;
    font-weight: 600;
}

.humMax {
    color: #ff4a4a;
    font-weight: 600;
}


/* ====================================================
   REGENMETERS
==================================================== */
.rain-row {
    display: flex;
    justify-content: center;
    gap: 0;
}

.rain-block {
    width: 80px;
    text-align: center;
}

.rain-inner {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 4px;
}

.rain-scale {
    height: 180px;
    width: 20px;
    position: relative;
}

.rain-tick {
    position: absolute;
    right: 0;
    height: 1px;
    background: #000;
}

.rain-tick.small { width: 6px; }
.rain-tick.big   { width: 12px; }

.rain-tick-label {
    position: absolute;
    right: 16px;
    font-size: 8px;
    padding-top: 5px;
}

.rain-bar {
    width: 25px;
    height: 180px;
    border: 2px solid #000;
    border-radius: 8px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(1px);
    overflow: hidden;
    position: relative;
}

.rain-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, #0099ff, #33bbff);
    height: 0%;
    transition: height 0.6s ease;
}

.rain-label {
    font-size: 12px;
    margin-top: 15px;
}

.rain-value {
    font-size: 13px;
    font-weight: bold;
    margin-top: 4px;
}


/* ====================================================
   CLOUDBASE / VISIBILITY / DEWPOINT / VERDAMPING
==================================================== */
.cloudbase-inner {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
}

.cloudbase-scale {
    height: 180px;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    font-size: 12px;
    width: 40px;
    text-align: right;
}

.cloudbase-scale div {
    position: relative;
    padding-right: 6px;
    transform: translateY(3px);
}

.cloudbase-scale div::before {
    content: "";
    position: absolute;
    right: -4px;
    top: 50%;
    width: 6px;
    height: 1px;
    background: #000;
    transform: translateY(-50%);
}

.cloudbase-bar {
    width: 28px;
    height: 180px;
    background: #fff;
    border: 1px solid #555;
    overflow: hidden;
    position: relative;
}

.cloudbase-fill {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #0044aa, #88aacc, #dddddd);
    transition: height 0.4s ease;
}

.cloudbase-label {
    margin-top: 18px;
    text-align: center;
}

.cloudbase-text {
    font-size: 13px;
}

.cloudbase-value {
    font-size: 14px;
    color: #4aa3ff;
    font-weight: 600;
}

/* VISIBILITY kleur */
#visFill {
    background: linear-gradient(to top, #666, #aaa, #fff);
}

/* DEWPOINT kleur */
#dewFill {
    background: linear-gradient(to top, #0044aa, #55aaff, #ffeeaa);
}

/* VERDAMPING kleur */
#evapFill {
    background: linear-gradient(to top, #ffaa00, #ffdd66, #fff2cc);
}

.evap-yesterday {
    font-size: 11px;
    color: #777;
    margin-top: 2px;
}


/* ====================================================
   WINDRUN METER (DIGITALE LCD)
==================================================== */
.windrun-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;

    transform: scale(0.65);
    transform-origin: top left;

    margin-bottom: -35px; /* FIX: windrun optisch omhoog */
}


.windrun-display {
    background: #0b0b0b;
    padding: 0px 32px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        inset 0 0 10px rgba(255,255,255,0.05),
        0 0 18px rgba(0,0,0,0.6);
    text-align: center;
}

.windrun-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.windrun-number {
    font-family: "Digital-7", "DS-Digital", monospace;
    font-size: 3.8rem;
    color: #aefaff;
    letter-spacing: 2px;
    text-shadow:
        0 0 6px rgba(120,220,255,0.7),
        0 0 12px rgba(120,220,255,0.4);
}

.windrun-unit {
    font-family: "Digital-7", "DS-Digital", monospace;
    font-size: 1.4rem;
    color: #8fdde8;
    opacity: 0.85;
    text-shadow:
        0 0 6px rgba(120,220,255,0.5),
        0 0 10px rgba(120,220,255,0.3);
}

.windrun-label {
    margin-top: 6px;
    font-size: 1rem;
    color: #8bbccc;
    opacity: 0.85;
}

/* ====================================================
   REGENTABEL 31 DAGEN
==================================================== */
.rain31-graph {
    display: flex;
    align-items: flex-end;
    width: 500px;          /* <<< vaste breedte */
    height: 180px;
    margin: 0px auto;
    background: #cdcdcd;
    border-radius: 10px;
    padding: 10px;
    gap: 10px;
}


/* Y-as links */
.rain31-yaxis {
    position: relative;
    width: 10px;
    height: 140px;
}

/* Y-as labels exact op de gridlines */
.rain31-ylabel {
    position: absolute;
    left: 0;
    font-size: 12px;
    color: #333;
    transform: translateY(-25px); /* <<< getallen omhoog */
    margin: 0;                 /* margin werkt niet bij absolute posities */
    line-height: 12px;
}

.rain31-graph {
    border: 1px solid rgba(0,0,0,0.35); /* dun subtiel kader */
    border-radius: 8px;                 /* zelfde ronding als andere meters */
    padding: 10px;                      /* ruimte tussen kader en inhoud */
}

.rain31-footer {
    color: #000;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 6px;
}



/* Bars + gridlines */
.rain31-bars-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


/* Bars in exact 31 kolommen */
#rain31-bars {
    display: grid;
    grid-template-columns: repeat(31, 1fr);
    align-items: end;
    height: 160px;
    gap: 3px;
}

/* individuele bar */
.rain31-bar {
    background: #4a90e2;
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
}

/* Datumlabels in exact dezelfde kolommen */
#rain31-labels {
    display: grid;
    grid-template-columns: repeat(31, 1fr);
    margin-top: 6px;
    font-size: 10px;
    color: #333;
    text-align: center;
}

.lcd-uniform {
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 10px 14px;
    width: 160px; /* breedte van zontijden */
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #00ffea;
    box-shadow: inset 0 0 8px rgba(0,255,255,0.25);
    margin-top: 10px;
}

.lcd-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.lcd-label {
    color: #00c8b0;
}

.unit.align-bottom {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.zontijden-modern {
    background: #0a0a0a;
    border: 2px solid #333;
    border-radius: 6px;
    padding: 10px 14px;
    width: 160px; /* zelfde breedte als windrun */
    font-family: 'Orbitron', sans-serif; /* DIGITAAL FONT */
    color: #00ffea;
    box-shadow: inset 0 0 8px rgba(0,255,255,0.25);
    margin-top: 12px;
}

.zontijden-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.zontijden-label {
    color: #00c8b0;
    font-size: 0.85rem;
}

.zontijden-value {
    font-family: 'Orbitron', sans-serif; /* BELANGRIJK */
    font-size: 1.1rem; /* zelfde grootte als windrun */
    font-weight: 600;
    color: #00ffea;
    letter-spacing: 1px; /* digitale look */
}

.unit.align-top {
    align-self: start !important;
}

.zontijden-value {
    font-family: "Digital-7", "DS-Digital", monospace !important;
    font-size: 1.3rem;
    font-weight: 400;
    color: #aefaff;
    letter-spacing: 2px;
    text-shadow:
        0 0 6px rgba(120,220,255,0.7),
        0 0 12px rgba(120,220,255,0.4);
}

.zontijden-value small {
    font-size: 0.65em;
    opacity: 0.85;
    vertical-align: middle;
    letter-spacing: 1px;
}


.windrun-modern {
    margin-bottom: -55px;
}
