/* css/modal-fridge.css - SCOPED */

/* --- LAYOUT --- */
#modal_fridge .modal-top-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 15px; margin-bottom: 10px; flex-shrink: 0;
}

#modal_fridge .detail-card {
    background: #252527; border-radius: 18px; padding: 10px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    position: relative; border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); min-height: 140px;
}

/* Akzentfarbe Eisblau */
#modal_fridge .detail-card.fridge-accent {
    border-color: rgba(0, 168, 255, 0.4);
}

#modal_fridge .detail-title {
    font-size: 0.7rem; color: #888; text-transform: uppercase; letter-spacing: 1px;
    position: absolute; top: 10px; left: 0; width: 100%; text-align: center;
    z-index: 10;
}

/* --- KÜHLSCHRANK VISUALISIERUNG --- */
#modal_fridge .fridge-row {
    display: flex; align-items: center; justify-content: center;
    gap: 15px; margin-top: 15px; width: 100%;
}

#modal_fridge .fridge-visual {
    position: relative; width: 50px; height: 80px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border: 2px solid #555;
    border-radius: 4px;
    box-shadow: inset 2px 2px 5px rgba(255,255,255,0.1), 0 5px 10px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}

/* Trennlinie für Türen */
#modal_fridge .fridge-split {
    width: 100%; height: 2px; background: #111;
    margin-top: 50px; opacity: 0.5;
}

/* Griffe */
#modal_fridge .fridge-handle {
    position: absolute; left: 4px; width: 3px; height: 20px;
    background: #bdc3c7; border-radius: 2px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
#modal_fridge .fridge-handle.top { top: 30px; }
#modal_fridge .fridge-handle.bottom { top: 55px; }

/* Display auf der Tür */
#modal_fridge .fridge-display {
    position: absolute; top: 10px; right: 8px;
    background: rgba(0,0,0,0.6);
    padding: 2px 4px; border-radius: 2px;
    font-size: 0.6rem; color: #00a8ff; font-family: monospace;
    border: 1px solid #00a8ff;
    box-shadow: 0 0 5px rgba(0, 168, 255, 0.3);
}

/* Status LED (An/Aus) */
#modal_fridge .fridge-led {
    position: absolute; top: 12px; left: 8px;
    width: 4px; height: 4px; border-radius: 50%;
    background: #333; transition: background 0.3s;
}
#modal_fridge .fridge-led.active { background: #2ecc71; box-shadow: 0 0 5px #2ecc71; }


/* --- INFO SPALTE --- */
#modal_fridge .fridge-info-col {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
#modal_fridge .main-temp {
    font-size: 1.8rem; font-weight: bold; color: #fff; line-height: 1;
}
#modal_fridge .status-text {
    font-size: 0.75rem; color: #aaa; margin-top: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
#modal_fridge .status-text.cooling { color: #00a8ff; animation: pulseBlue 2s infinite; }

@keyframes pulseBlue { 0% { opacity: 0.7; } 50% { opacity: 1; } 100% { opacity: 0.7; } }


/* --- CHART CONTAINER --- */
#modal_fridge .chart-container {
    position: relative; width: 100%;
    min-height: 250px;
    background: rgba(0, 168, 255, 0.05);
    border-radius: 15px; padding: 10px; margin-bottom: 5px;
    flex-grow: 1;
    border: 1px solid rgba(0, 168, 255, 0.1);
}

/* Responsive */
@media (min-width: 1000px) {
    #modal_fridge .chart-container { min-height: 40vh; }
    #modal_fridge .modal-top-grid { grid-template-columns: 1fr 1fr 1fr; }
}