/* css/modal-freezer.css - SCOPED */

/* --- LAYOUT --- */
#modal_freezer .modal-top-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 15px; margin-bottom: 10px; flex-shrink: 0;
}

#modal_freezer .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: Tiefes Eisblau */
#modal_freezer .detail-card.freezer-accent {
    border-color: rgba(9, 132, 227, 0.5);
    box-shadow: 0 0 10px rgba(9, 132, 227, 0.1); /* Leichter Kälte-Glow */
}

#modal_freezer .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;
}

/* --- VISUALISIERUNG (Gefrierschrank) --- */
#modal_freezer .freezer-row {
    display: flex; align-items: center; justify-content: center;
    gap: 15px; margin-top: 15px; width: 100%;
}

#modal_freezer .freezer-visual {
    position: relative; width: 50px; height: 80px;
    /* Frostiger Farbverlauf */
    background: linear-gradient(135deg, #2c3e50, #0984e3);
    border: 2px solid #74b9ff; /* Heller Rand wie Eis */
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(255,255,255,0.1);
    display: flex; flex-direction: column;
}

/* Griffe (Horizontal für Truhen-Look oder Vertikal für Schrank) */
#modal_freezer .freezer-handle {
    position: absolute; left: 4px; width: 4px; height: 25px;
    background: #dfe6e9; border-radius: 2px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    top: 25px;
}

/* Display */
#modal_freezer .freezer-display {
    position: absolute; top: 6px; right: 6px;
    background: rgba(0,0,0,0.7);
    padding: 2px 4px; border-radius: 2px;
    font-size: 0.6rem; color: #74b9ff; font-family: monospace;
    border: 1px solid #0984e3;
}

/* Frost Partikel (Deko Punkte) */
#modal_freezer .freezer-visual::after {
    content: '❄'; position: absolute; bottom: 5px; right: 5px;
    font-size: 10px; color: rgba(255,255,255,0.5);
}

/* --- INFO SPALTE --- */
#modal_freezer .freezer-info-col {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
#modal_freezer .main-temp {
    font-size: 1.8rem; font-weight: bold; color: #fff; line-height: 1;
    text-shadow: 0 0 10px rgba(9, 132, 227, 0.5);
}
#modal_freezer .status-text {
    font-size: 0.75rem; color: #aaa; margin-top: 4px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
#modal_freezer .status-text.freezing {
    color: #74b9ff;
    font-weight: bold;
    animation: frostPulse 3s infinite;
}

@keyframes frostPulse { 0% { opacity: 0.6; } 50% { opacity: 1; text-shadow: 0 0 5px #74b9ff; } 100% { opacity: 0.6; } }


/* --- CHART CONTAINER --- */
#modal_freezer .chart-container {
    position: relative; width: 100%;
    min-height: 250px;
    background: rgba(9, 132, 227, 0.05);
    border-radius: 15px; padding: 10px; margin-bottom: 5px;
    flex-grow: 1;
    border: 1px solid rgba(9, 132, 227, 0.2);
}

/* Responsive */
@media (min-width: 1000px) {
    #modal_freezer .chart-container { min-height: 40vh; }
    #modal_freezer .modal-top-grid { grid-template-columns: 1fr 1fr 1fr; }
}