/**
 * WEBCAM-SEITE CSS - Wetterstation Schladming
 * Ausgelagert aus webcam.php
 * Nutzt globale Variablen aus style.css
 */

.webcam-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem var(--space-lg) 2rem;
}

/* 4 Kacheln nebeneinander */
.webcam-selector {
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
    margin-bottom: 0.75rem;
    width: 100%;
}

.wc-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    padding: 0.65rem 0.9rem;
    height: 68px; min-height: 68px; max-height: 68px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    border: 1px solid var(--blue-a25);
    border-left: 3px solid var(--blue-light);
    background: var(--bg-card);
    transition: var(--transition-base);
    user-select: none;
    overflow: hidden;
}
.wc-btn:hover {
    border-color: var(--blue-a40);
    border-left-width: 3px;
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}
.wc-btn.active {
    border-color: var(--blue-a40);
    border-left-color: var(--blue);
    background: var(--bg-card);
    box-shadow: 0 0 16px var(--blue-a25);
}
.wc-btn.active .wc-label { color: var(--blue-light); }

/* Individuelle border-left Farben */
.wc-btn:nth-child(1) { border-left-color: var(--blue-light); }
.wc-btn:nth-child(2) { border-left-color: var(--green-muted); }
.wc-btn:nth-child(3) { border-left-color: var(--orange-light); }
.wc-btn:nth-child(4) { border-left-color: var(--purple); }
.wc-btn:nth-child(1).active { border-left-color: var(--blue); }
.wc-btn:nth-child(2).active { border-left-color: var(--green); }
.wc-btn:nth-child(3).active { border-left-color: var(--orange); }
.wc-btn:nth-child(4).active { border-left-color: var(--purple-bright); }

.wc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    flex-shrink: 0;
}
.wc-icon svg { width: 32px; height: 26px; }
.wc-text {
    display: flex;
    flex-direction: column;
}
.wc-label {
    font-size: var(--fs-sm);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}
.wc-sub {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    text-align: left;
    font-weight: 500;
    display: block;
}

/* Webcam Box */
.webcam-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--blue-a25);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.webcam-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.webcam-iframe-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
    display: block;
}

@media (max-width: 600px) {
    .wc-btn {
        padding: 0.35rem 0.2rem;
        gap: 0;
    }
    .wc-icon { display: none; }
    .wc-label {
        font-size: 0.65rem;
        letter-spacing: 0;
        white-space: normal;
        line-height: 1.1;
        word-break: break-word;
    }
    .wc-sub { font-size: 0.65rem; line-height: 1.1; margin-top: 4px; }
    .wc-text { min-width: 0; overflow: visible; width: 100%; text-align: center; }
    .wc-label, .wc-sub { text-align: center; }
    .webcam-iframe-wrap { height: 420px; aspect-ratio: unset; }
}
