/* =========================================================
   FOOD SAVER
   LIVE CAMERA PAGE
   ========================================================= */

.live-camera-page {
    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    display: flex;

    padding: clamp(4px, 0.6vw, 8px);

    background: #000;

    box-sizing: border-box;

    overflow: hidden;
}


/* =========================================================
   CAMERA VIEW
   ========================================================= */

.camera-view {
    position: relative;

    width: 100%;
    height: 100%;

    min-width: 0;
    min-height: 0;

    background: #020b10;

    border: 1px solid #006a86;
    border-radius: 7px;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   CAMERA FRAME
   ========================================================= */

.camera-view iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;

    display: block;

    background: #000;
}


/* =========================================================
   LIVE INDICATOR
   ========================================================= */

.camera-live {
    position: absolute;

    top: clamp(8px, 1vw, 14px);
    left: clamp(8px, 1vw, 14px);

    display: flex;
    align-items: center;

    gap: 6px;

    padding: 4px 8px;

    border-radius: 4px;

    background: rgba(0, 0, 0, 0.65);

    color: #00e676;

    font-size: clamp(10px, 1vw, 13px);
    font-weight: 700;

    pointer-events: none;
}

.camera-live::before {
    content: "";

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #00e676;
}


/* =========================================================
   CAMERA NAME
   ========================================================= */

.camera-name {
    position: absolute;

    right: clamp(8px, 1vw, 14px);
    bottom: clamp(8px, 1vw, 14px);

    padding: 4px 8px;

    border-radius: 4px;

    background: rgba(0, 0, 0, 0.65);

    color: #d9f3fa;

    font-size: clamp(10px, 1vw, 13px);

    pointer-events: none;
}


/* =========================================================
   SMALL SCREEN
   ========================================================= */

@media (max-width: 700px) {

    .live-camera-page {
        padding: 4px;
    }

    .camera-view {
        border-radius: 5px;
    }
}


/* =========================================================
   RESPONSIVE LIVE CAMERA — MOBILE & TABLET
   ========================================================= */

@media (max-width: 900px) {
    #page-container:has(.live-camera-page) {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .main:has(.live-camera-page) {
        overflow: hidden;
    }

    .live-camera-page {
        width: 100%;
        height: 100%;
        min-height: 0;
        display: flex;
        overflow: hidden;
    }

    .camera-view {
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        min-width: 0;
        min-height: 0;
    }

    .camera-view iframe {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
    }
}