/* ==========================================================================
   1. ΜΕΤΑΒΛΗΤΕΣ ΧΡΩΜΑΤΩΝ ΚΑΙ ΡΥΘΜΙΣΕΙΣ (VARIABLES)
   ========================================================================== */
:root {
    /* Βασικό μαύρο φόντο */
    --main-bg: #000000; 
    
    /* Χρώματα για το γυάλινο εφέ των καρτών */
    --glass-dynamic: rgba(25, 35, 45, 0.7); 
    --glass-static: rgba(25, 35, 45, 0.7);

    /* Χρώμα περιγράμματος καρτών */
    --glass-border: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   2. ΓΕΝΙΚΟ ΓΥΑΛΙΝΟ ΣΤΥΛ ΚΑΡΤΩΝ (GLASSMORPHISM)
   ========================================================================== */
.glass-card { 
    background: var(--glass-static) !important; 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px; 
    padding: 20px; 
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05);
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    text-shadow: 2px 2px 4px rgba(0,0,0,1);
    transition: 0.3s;
}

/* --- Αυτόματη μετατροπή τίτλων σε Κεφαλαία --- */
.glass-card h3 { 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important;
    font-weight: 600; /* Για να φαίνονται πιο καθαρά */
}

/* ==========================================================================
   3. ΓΕΝΙΚΕΣ ΡΥΘΜΙΣΕΙΣ ΣΕΛΙΔΑΣ (BODY)
   ========================================================================== */
body { 
    background-color: var(--main-bg) !important; 
    background-image: none !important; 
    color: white; 
    font-family: 'Segoe UI', sans-serif; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
}

/* ==========================================================================
   4. ΚΟΥΜΠΙΑ ΜΕΝΟΥ ΚΑΙ ΑΛΛΑΓΗΣ ΓΛΩΣΣΑΣ (HEADER)
   ========================================================================== */
.menu-trigger { position: absolute; top: 20px; left: 20px; z-index: 1000; }
.lang-trigger { position: absolute; top: 20px; right: 20px; z-index: 1000; display: flex; gap: 10px; }

/* Κουμπί Μενού */
.menu-btn { 
    background: rgba(0, 229, 255, 0.2); 
    border: 2px solid #00e5ff; 
    color: white; 
    padding: 12px 25px; 
    border-radius: 12px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-size: 1.2em; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* Κουμπιά Γλώσσας */
.lang-btn { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.3); 
    color: white; 
    padding: 8px 12px; 
    border-radius: 10px; 
    cursor: pointer; 
    font-size: 1.2em; 
}

.lang-btn.active { background: #00e5ff; color: black; border-color: #00e5ff; }

/* ==========================================================================
   5. ΠΛΑΪΝΟ ΜΕΝΟΥ (SIDE DRAWER)
   ========================================================================== */
.drawer { 
    height: 100%; width: 0; position: fixed; z-index: 2000; 
    top: 0; left: 0; background-color: #0b1021; 
    border-right: 1px solid rgba(0, 229, 255, 0.3); 
    overflow-x: hidden; transition: 0.5s; padding-top: 60px; 
}

.drawer a { 
    padding: 15px 32px; text-decoration: none; font-size: 22px; 
    color: #aaa; display: flex; align-items: center; gap: 15px; transition: 0.3s; 
}

.drawer a:hover { color: #00e5ff; transform: translateX(10px); }
.drawer .closebtn { position: absolute; top: 0; right: 25px; font-size: 45px; color: #fff; }

/* ==========================================================================
   6. ΤΥΠΟΓΡΑΦΙΑ ΚΑΙ ΧΡΩΜΑΤΑ ΜΕΣΑ ΣΤΙΣ ΚΑΡΤΕΣ
   ========================================================================== */
.glass-card h3 { color: #2ecc71 !important; margin-bottom: 15px; font-weight: bold; }

/* ==========================================================================
   7. ΚΕΝΤΡΙΚΟΣ ΤΙΤΛΟΣ ΘΕΡΜΟΚΡΑΣΙΑΣ (LIVE ΣΥΝΘΗΚΕΣ)
   ========================================================================== */
.temp-main { 
    font-size: 90px; font-weight: bold; color: #ffffff; 
    text-shadow: 0 0 35px rgba(255,255,255,0.6); 
    line-height: 1; margin: 10px 0; 
}

/* ==========================================================================
   8. ΓΕΝΙΚΕΣ ΤΙΜΕΣ ΣΤΑΤΙΣΤΙΚΩΝ (ΑΡΙΘΜΟΙ ΚΑΙ ΜΟΝΑΔΕΣ)
   ========================================================================== */
.stat-value { 
    font-weight: bold; 
    color: #ffffff !important;
    font-size: 2.8em; 
    line-height: 1.1; 
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5); 
}

.stat-unit { font-size: 0.4em; color: #ffffff !important; vertical-align: middle; font-weight: bold; }
.stat-value small { color: #ffffff !important; font-weight: bold; opacity: 1; }

/* ==========================================================================
   9. ΕΙΔΙΚΑ ΣΤΥΛ ΓΙΑ ΤΗ ΒΡΟΧΗ, ΤΟΝ ΑΕΡΑ ΚΑΙ ΤΟΝ ΔΡΟΣΟ
   ========================================================================== */
.rain-lbl, #txt_gust, #txt_dew, #txt_cam_note { 
    font-size: 0.8em; 
    color: #2ecc71 !important; 
    text-transform: uppercase; 
    font-weight: bold; 
    opacity: 1 !important;
}

.rain-divider { border-right: 1px solid rgba(255,255,255,0.1); }
.rain-val { font-size: 1.6em; font-weight: bold; color: #2ecc71; display: block; }
.footer-bottom { 
    background: #0b0b14; text-align: center; padding: 20px; 
    color: #555; font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.05); 
    width: 100%; margin-top: auto; 
}

/* ==========================================================================
   10. ΠΛΑΙΣΙΟ METEO CAMERA
   ========================================================================== */
.camera-container { 
    position: relative; width: 80%; margin: 0 auto; 
    border-radius: 15px; overflow: hidden; background: #000; 
    aspect-ratio: 16/9; display: flex; align-items: center; 
    justify-content: center; border: 1px solid rgba(255,255,255,0.1); cursor: pointer; 
}

.cam-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); display: flex; flex-direction: column; 
    justify-content: center; align-items: center; opacity: 0; 
    transition: 0.3s; z-index: 10; gap: 10px; 
}

.camera-container:hover .cam-overlay { opacity: 1; }
.cam-label { 
    position: absolute; top: 15px; left: 15px; background: rgba(255, 0, 0, 0.8); 
    color: white; padding: 4px 10px; border-radius: 4px; font-size: 0.7em; 
    font-weight: bold; z-index: 5; animation: blink 1.5s infinite; 
}

/* ==========================================================================
   11. ΕΦΕ ΠΑΛΜΟΥ (PULSE) ΓΙΑ ΤΙΣ LIVE ΣΥΝΘΗΚΕΣ
   ========================================================================== */
.live-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #00e5ff; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #2ecc71; 
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   12. ΕΦΕ ΛΑΜΨΗΣ ΓΙΑ ΤΗΝ ΚΑΡΤΑ ΚΕΡΑΥΝΩΝ
   ========================================================================== */
.lightning-flash {
    animation: lightning-border-pulse 2s infinite;
}

@keyframes lightning-border-pulse {
    0% { 
        box-shadow: 0 0 5px rgba(255,255,255,0.2);
        border-color: inherit;
    }
    50% { 
        box-shadow: 0 0 20px currentColor; 
        background: rgba(255, 255, 255, 0.1) !important;
    }
    100% { 
        box-shadow: 0 0 5px rgba(255,255,255,0.2);
        border-color: inherit;
    }
}

/* ==========================================================================
   13. ΡΥΘΜΙΣΕΙΣ ΕΙΚΟΝΑΣ ΦΟΝΤΟΥ (LIVE BACKGROUND ACTIVE)
   ========================================================================== */
body.bg-active {
    background: url('../images/live_bg.jpg') no-repeat center center fixed !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
}

/* Εφέ σκοτεινιάσματος πάνω στο φόντο */
body.bg-active::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(2px);    
    z-index: -1;
}

/* ==========================================================================
   14. ΚΟΥΜΠΙ ΕΝΑΛΛΑΓΗΣ ΦΟΝΤΟΥ (TOGGLE BUTTON)
   ========================================================================== */
.btn-toggle {
    position: absolute;
    top: 15px;
    right: 130px; 
    z-index: 1001;
    background: rgba(0, 229, 255, 0.15); 
    border: 1px solid #00e5ff;
    color: #00e5ff;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.btn-toggle:hover {
    background: #00e5ff;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

/* Προσαρμογή κουμπιού για κινητά */
@media (max-width: 768px) {
    .btn-toggle {
        right: 130px; 
        top: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   15. ΑΠΟΠΟΙΗΣΗ ΕΥΘΥΝΗΣ ΚΑΙ COPYRIGHT (FOOTER)
   ========================================================================== */
.disclaimer-container {
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 15px; 
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#txt_footer_disclaimer {
    color: #ccc; 
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

#txt_footer_disclaimer strong {
    color: #00e5ff; 
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

/* ==========================================================================
   16. ΕΙΔΟΠΟΙΗΣΗ ΘΕΡΜΙΚΗΣ ΚΑΤΑΠΟΝΗΣΗΣ (WBGT ALERT)
   ========================================================================== */
.glass-card .wbgt-alert {
    background: rgba(0, 229, 255, 0.05); 
    margin: 10px -15px -15px -15px;      
    padding: 10px;
    border-radius: 0 0 10px 10px;        
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   17. ΕΙΔΙΚΟ ΣΤΥΛ ΓΙΑ ΤΗΝ ΤΡΙΠΛΗ ΚΑΡΤΑ (UV / WATT / ΦΩΤΕΙΝΟΤΗΤΑ)
   ========================================================================== */

/* 1. Εικονίδια: Θαλασσί (Cyan) */
.stat-icon-cyan {
    color: #00e5ff !important;
    font-size: 1.6rem;
}

/* 2. Τίτλοι: Πράσινοι (Όπως στη βροχή) */
.stat-label-green {
    color: #2ecc71 !important;
    font-size: 1.05rem !important;
    font-weight: bold;
    text-transform: uppercase;
}

/* 3. Νούμερα: Λευκά με Λάμψη */
.stat-value-white {
    color: #ffffff !important;
    font-size: 1.9rem !important;
    font-weight: bold;
    display: block;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Διαρρύθμιση Τριπλής Κάρτας */
.triple-wrapper {
    display: flex; 
    align-items: center; 
    justify-content: space-around; 
    width: 100%; 
    text-align: center;
}

/* Κάθετοι Διαχωριστές Τριπλής Κάρτας */
.triple-divider {
    width: 1px; 
    height: 45px; 
    background: rgba(255, 255, 255, 0.1); 
    margin: 0 5px;
}