/* =========================================
   BIBLE GROWTH SYSTEM - VOICE PRACTICE
   Lemon-green theme
========================================= */

.voice-page {
    width: min(1200px, 94%);
    margin: 0 auto;
    padding: 32px 0;
    color: #26321A;
}

.voice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.voice-eyebrow {
    color: #709800;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.voice-header h1 {
    font-size: clamp(28px, 4vw, 38px);
    margin: 0 0 8px;
    color: #26321A;
}

.voice-header p {
    margin-top: 0;
    color: #69735D;
}

.voice-back-link {
    display: inline-block;
    padding: 11px 16px;
    border: 1px solid #DDE9C5;
    border-radius: 10px;
    text-decoration: none;
    color: #456500;
    font-weight: 700;
    white-space: nowrap;
}

.voice-back-link:hover {
    background: #F2F9E4;
}

.voice-message {
    padding: 14px 17px;
    margin-bottom: 22px;
    border-radius: 10px;
    font-weight: 600;
}

.voice-message.is-success {
    background: #F0F9D9;
    border: 1px solid #CDE89A;
    color: #456500;
}

.voice-message.is-error {
    background: #FFF0EF;
    border: 1px solid #F2C4C0;
    color: #9B2525;
}

.voice-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 24px;
    align-items: start;
}

.voice-card {
    min-width: 0;
    padding: 25px;
    background: #FFFFFF;
    border: 1px solid #E6EDDA;
    border-radius: 18px;
    box-shadow: 0 7px 25px rgba(44, 64, 15, 0.06);
}

.voice-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

.voice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #F0F9D9;
    font-size: 23px;
}

.voice-card-heading h2 {
    margin: 0 0 6px;
    font-size: 21px;
    color: #26321A;
}

.voice-card-heading p {
    margin: 0;
    color: #78816C;
    font-size: 13px;
}

.voice-recorder-status {
    padding: 12px;
    text-align: center;
    background: #F7FBEF;
    border-radius: 10px;
    color: #5C7627;
    font-size: 14px;
    font-weight: 600;
}

.voice-timer {
    text-align: center;
    font-size: clamp(40px, 6vw, 58px);
    font-weight: 800;
    letter-spacing: 2px;
    padding: 25px 0;
    font-variant-numeric: tabular-nums;
    color: #34451C;
}

.voice-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.voice-button {
    border: 0;
    border-radius: 10px;
    padding: 12px 17px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.voice-button:not(:disabled):hover {
    transform: translateY(-1px);
}

.voice-button.primary {
    background: #B7E432;
    color: #26321A;
}

.voice-button.primary:not(:disabled):hover {
    background: #A6D322;
}

.voice-button.secondary {
    background: #EFF4E6;
    color: #41542A;
}

.voice-button.secondary:not(:disabled):hover {
    background: #E2EDCE;
}

.voice-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

#previewAudio {
    display: block;
    width: 100%;
    margin: 16px 0;
}

.voice-hint {
    margin: 20px 0;
    font-size: 12px;
    line-height: 1.7;
    color: #79836E;
}

.voice-save-form {
    border-top: 1px solid #E9EFDF;
    padding-top: 22px;
}

.voice-field {
    margin-bottom: 17px;
}

.voice-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #37462A;
}

.voice-field input,
.voice-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #DCE5CE;
    border-radius: 9px;
    padding: 12px;
    background: #FFFFFF;
    color: #26321A;
    font: inherit;
    font-size: 14px;
}

.voice-field input:focus,
.voice-field textarea:focus {
    outline: 2px solid #B7E432;
    outline-offset: 1px;
    border-color: #8DBF00;
}

.voice-field textarea {
    resize: vertical;
}

.save-button {
    width: 100%;
    padding: 14px;
}

.voice-empty-state {
    text-align: center;
    padding: 40px 15px;
    background: #FAFCF6;
    border: 1px dashed #D8E5C3;
    border-radius: 12px;
}

.voice-empty-state > span {
    font-size: 35px;
}

.voice-empty-state h3 {
    margin: 14px 0 8px;
}

.voice-empty-state p {
    color: #78816C;
    font-size: 14px;
}

.voice-recording-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.voice-recording {
    padding: 17px;
    border: 1px solid #E6EDDA;
    border-radius: 12px;
    background: #FCFDF9;
}

.voice-recording-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.voice-recording-details {
    min-width: 0;
}

.voice-recording-details h3 {
    margin: 0 0 7px;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.voice-recording-details p {
    margin: 0;
    font-size: 12px;
    color: #78816C;
}

.voice-dot {
    margin: 0 5px;
}

.voice-delete-button {
    border: 1px solid #F0D1CE;
    border-radius: 7px;
    padding: 7px 10px;
    background: #FFF4F3;
    color: #A12B25;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.voice-delete-button:hover {
    background: #FCE5E3;
}

.voice-recording-notes {
    margin: 14px 0;
    color: #59644D;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.saved-audio {
    display: block;
    width: 100%;
    margin-top: 15px;
}

.voice-footer {
    text-align: center;
    margin-top: 30px;
    padding: 18px 0;
    color: #78816C;
    font-size: 13px;
}

@media (max-width: 850px) {
    .voice-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .voice-page {
        width: 92%;
        padding-top: 20px;
    }

    .voice-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .voice-card {
        padding: 18px;
        border-radius: 14px;
    }

    .voice-controls {
        flex-direction: column;
    }

    .voice-controls .voice-button {
        width: 100%;
    }

    .voice-recording-top {
        flex-direction: column;
    }

    .voice-delete-button {
        padding: 8px 12px;
    }
}
