﻿/* =========================================================
   VIDEO BIO – WIZARD BASE
   ========================================================= */

.video-bio-wizard {
    display: flex;
    justify-content: center;
    width: 100%;
}

    .video-bio-wizard .wizard-step {
        width: 100%;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    /* ---------------------------------------------------------
   Wizard footer (matches Profile Picture wizard)
   --------------------------------------------------------- */

    .video-bio-wizard .wizard-footer {
        margin-top: auto; /* push to bottom when possible */
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-end; /* single button bottom-right */
        padding-top: 20px;
    }

        .video-bio-wizard .wizard-footer.two-actions {
            justify-content: space-between; /* left / right buttons */
        }

    /* =========================================================
   WIZARD TEXT RHYTHM (shared across steps)
   ========================================================= */

    .video-bio-wizard .wizard-title {
        font-size: 18px;
        font-weight: 600;
        color: #111827;
    }

    .video-bio-wizard .wizard-subtext {
        font-size: 14px;
        color: #6b7280;
        max-width: 320px;
    }

    /* =========================================================
   STEP: CHOOSE METHOD
   ========================================================= */

    .video-bio-wizard .choose-method-step {
        min-height: 260px;
    }

    .video-bio-wizard .choose-method-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 10%;
    }

    /* ---------------------------------------------------------
   Choice tiles
   --------------------------------------------------------- */

    .video-bio-wizard .choose-actions {
        display: flex;
        gap: 20px;
        margin-top: 20px;
    }

    .video-bio-wizard .choose-tile {
        width: 140px;
        height: 140px;
        border-radius: 12px;
        border: none;
        background-color: #e5e7eb;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: background-color 0.15s ease, transform 0.1s ease;
    }

        .video-bio-wizard .choose-tile:hover {
            background-color: #d6d6d6;
        }

        .video-bio-wizard .choose-tile:active {
            transform: scale(0.98);
        }

    .video-bio-wizard .choose-icon {
        font-size: 28px;
        line-height: 1;
    }

    .video-bio-wizard .choose-label {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
    }

    /* =========================================================
   STEP: RECORDING SETUP
   ========================================================= */

    .video-bio-wizard .recording-setup-step {
        min-height: 300px;
    }

    .video-bio-wizard .recording-setup-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 6%;
    }

    .video-bio-wizard .recording-preview {
        width: 320px;
        max-width: 100%;
        border-radius: 10px;
        overflow: hidden;
        background-color: #e5e7eb;
    }

        .video-bio-wizard .recording-preview video {
            width: 100%;
            height: auto;
            display: block;
        }

    .video-bio-wizard .recording-error {
        font-size: 14px;
        color: #b91c1c;
        margin-top: 10px;
        max-width: 320px;
    }

    /* =========================================================
   RECORDING SETUP – VERTICAL AUDIO METER
   ========================================================= */

    .video-bio-wizard .recording-preview-wrap {
        display: flex;
        align-items: stretch;
        gap: 12px;
    }

    /* Video stays the same */
    .video-bio-wizard .recording-preview {
        width: 320px;
        max-width: 100%;
        border-radius: 10px;
        overflow: hidden;
        background-color: #e5e7eb;
    }

        .video-bio-wizard .recording-preview video {
            width: 100%;
            height: auto;
            display: block;
        }

    /* Audio meter container */
    .video-bio-wizard .audio-meter-vertical {
        width: 28px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

    /* Track */
    .video-bio-wizard .audio-meter-track {
        width: 8px;
        height: 100%;
        background-color: #e5e7eb;
        border-radius: 4px;
        overflow: hidden;
        display: flex;
        align-items: flex-end;
    }

    /* Fill grows upward */
    .video-bio-wizard .audio-meter-fill {
        width: 100%;
        height: 0%;
        background-color: var(--main-colour2);
        transition: height 0.1s linear;
    }

    /* Mic icon */
    .video-bio-wizard .audio-meter-icon {
        margin-top: 6px;
        font-size: 14px;
        line-height: 1;
        opacity: 0.7;
    }

    /* =========================================================
   STEP: RECORDING
   ========================================================= */

    .video-bio-wizard .recording-step {
        min-height: 320px;
    }

    .video-bio-wizard .recording-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 6%;
    }

    .video-bio-wizard .recording-stats {
        display: flex;
        gap: 16px;
        font-size: 13px;
        color: #6b7280;
    }

    /* =========================================================
   STEP: RECORDING PREVIEW
   ========================================================= */

    .video-bio-wizard .recording-preview-step {
        min-height: 300px;
    }

    .video-bio-wizard .recording-preview-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 6%;
    }

    .video-bio-wizard .recording-preview video {
        width: 320px;
        max-width: 100%;
        border-radius: 10px;
        background-color: #000;
        display: block;
    }

    .video-bio-wizard .recording-meta {
        display: flex;
        gap: 16px;
        font-size: 13px;
        color: #6b7280;
    }


.recording-limits {
    display: flex;
    gap: 28px;
    margin-top: 16px;
    justify-content: center;
}

.limit-circle {
    text-align: center;
}

.circle {
    --p: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: conic-gradient( var(--main-colour2) calc(var(--p) * 1%), #e5e7eb 0 );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background 0.3s ease;
}


    .circle.limit-hit {
        background: conic-gradient( #dc2626 100%, #dc2626 0 );
    }

.limit-label {
    font-size: 12px;
    margin-top: 6px;
    color: #6b7280;
}

/* Soft warning (80%) */
.circle.limit-warning {
    --ring-colour: #f59e0b; /* amber */
}

/* Hard limit (100%) */
.circle.limit-hit {
    --ring-colour: #dc2626; /* red */
}

/* =========================================================
   Circular progress rings
   ========================================================= */

.progress-ring {
    width: 84px;
    height: 84px;
    transform: rotate(-90deg);
}

.ring-track {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 8;
}

.ring-progress {
    fill: none;
    stroke: var(--main-colour2);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 327; /* 2π * 52 */
    transition: stroke-dashoffset 0.25s ease,
                stroke 0.25s ease;
}

/* Warning & limit colours */
.ring-progress.limit-warning {
    stroke: #f59e0b; /* amber */
}

.ring-progress.limit-hit {
    stroke: #dc2626; /* red */
}

/* Label below ring */
.ring-label {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

.limit-circle {
    position: relative;
    width: 84px;
    height: 84px;
}

/* SVG ring */
.progress-ring {
    width: 84px;
    height: 84px;
    transform: rotate(-90deg);
}

/* Centre text */
.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
}

/* Main number */
.ring-value {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: var(--main-colour2);
}

/* Secondary text */
.ring-max {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.2;
}

/* Colour sync with state */
.ring-progress.limit-warning ~ .ring-center .ring-value {
    color: #f59e0b;
}

.ring-progress.limit-hit ~ .ring-center .ring-value {
    color: #dc2626;
}
