/* ==========================================================================
   OLL MADAME LE VERBE v1.0
   Scoped styles to prevent theme conflicts
   ========================================================================== */

/* WRAPPER */
.oll-madame-le-verbe-program {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.oll-madame-le-verbe-program * {
    box-sizing: border-box;
}

/* ==========================================================================
   APP OUTLINE
   ========================================================================== */

.oll-madame-le-verbe-program .app-outline {
    width: 100%;
    background-color: var(--at-neutral-l-10);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 60vh;
    padding: 1rem 4rem;
    position: relative;
    border: 1px solid #e5e7eb;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.oll-madame-le-verbe-program .app-title {
    color: var(--at-secondary-d-2);
    font-size: 2rem;
    text-align: center;
    margin: 0 0 0.5rem 0;
}

.oll-madame-le-verbe-program .end-subtitle {
    color: var(--at-neutral);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.oll-madame-le-verbe-program .input-group {
    margin-bottom: 1.2rem;
    width: 100%;
    min-width: 850px;
}

.oll-madame-le-verbe-program .input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.oll-madame-le-verbe-program .input-label {
    display: block;
    font-family: var(--ej-label-font);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--at-neutral);
}

.oll-madame-le-verbe-program .speed-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--at-neutral-t-10);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.oll-madame-le-verbe-program .speed-slider-wrapper span {
    font-family: var(--ej-fancy-font);
    font-size: 2.4rem;
    color: var(--at-neutral);
}

.oll-madame-le-verbe-program input[type="range"] {
    accent-color: var(--at-primary-l-4);
    cursor: pointer;
}

.oll-madame-le-verbe-program textarea {
    width: 100%;
    min-width: 850px;
    height: 300px;
    padding: 1rem;
    border: 4px solid var(--at-neutral-l-8);
    border-radius: var(--at-radius--s);
    font-family: monospace;
    font-size: 1rem;
    background-color: var(--at-neutral-l-9);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.oll-madame-le-verbe-program .button {
    background-color: var(--at-accent-d-2);
    color: var(--at-neutral-l-10);
    padding: var(--at-btn-small-padding-block);
    font-family: var(--ej-label-font);
    font-size: 1.9rem;
    font-weight: 400;
    border-radius: var(--at-radius--s);
    border: none;
    cursor: pointer;
    width: 250px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: 0.6s;
}

.oll-madame-le-verbe-program .button:hover {
    background-color: var(--at-accent-d-4);
}

.oll-madame-le-verbe-program .small-link {
    background: none;
    border: none;
    color: var(--at-link);
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: underline;
}

.oll-madame-le-verbe-program .small-link:hover {
    color: var(--at-primary-d-3);
}

.oll-madame-le-verbe-program .info-btn {
    background: var(--at-secondary-d-1);
    color: var(--at-neutral-l-10);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--ej-label-font);
}

.oll-madame-le-verbe-program .info-btn:hover {
    background: var(--at-secondary);
}

/* ==========================================================================
   VERB CARD
   ========================================================================== */

.oll-madame-le-verbe-program .verb-card {
    background: var(--at-base-l-9);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    border: 1px var(--at-base-l-7) solid;
    width: 100%;
    min-width: 850px;
    max-width: 85rem;
}

.oll-madame-le-verbe-program .modal-verb-card {
    margin: 0;
}

.oll-madame-le-verbe-program .verb-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--at-link);
}

.oll-madame-le-verbe-program .verb-translation {
    font-size: 2rem;
    color: var(--at-neutral-d-6);
    margin-bottom: 1.5rem;
}

.oll-madame-le-verbe-program .verb-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
    margin-top: 1.5rem;
}

.oll-madame-le-verbe-program .meta-item {
    background: var(--at-neutral-l-10);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--at-neutral-l-8);
}

.oll-madame-le-verbe-program .meta-label {
    font-size: 0.8rem;
    color: var(--at-neutral);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.oll-madame-le-verbe-program .meta-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--at-primary-l-1);
}

/* ==========================================================================
   TENSE HEADER
   ========================================================================== */

.oll-madame-le-verbe-program .tense-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
    min-width: 850px;
}

.oll-madame-le-verbe-program .tense-title {
    font-size: 3rem;
    color: var(--at-primary-l-1);
    margin: 0;
    text-align: center;
    text-transform: capitalize;
}

/* ==========================================================================
   CONJUGATION TABLE
   ========================================================================== */

.oll-madame-le-verbe-program .conj-wrapper {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    max-height: 400px;
    margin-bottom: 0.5rem;
}

.oll-madame-le-verbe-program .conj-wrapper.hidden {
    max-height: 0;
    opacity: 0;
}

.oll-madame-le-verbe-program .conjugation-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--at-neutral-l-10);
    border: 1px solid var(--at-neutral-l-7);
    border-radius: 8px;
    min-width: 650px;
    overflow: hidden;
}

.oll-madame-le-verbe-program .conj-cell {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--at-neutral-l-10);
    border-bottom: 1px solid var(--at-neutral-l-8);
    border-right: 1px solid var(--at-neutral-l-8);
}

.oll-madame-le-verbe-program .conj-cell:nth-child(even) {
    border-right: none;
}

.oll-madame-le-verbe-program .conj-cell:nth-last-child(-n+2) {
    border-bottom: none;
}

.oll-madame-le-verbe-program .conj-pronoun {
    font-weight: 400;
    color: var(--at-neutral-d-6);
    font-size: 2.2rem;
}

.oll-madame-le-verbe-program .conj-ending {
    font-weight: 700;
    color: var(--at-neutral-d-6);
    font-family: inherit;
    font-size: 3rem;
    line-height: 1;
}

.oll-madame-le-verbe-program .char-interactive {
    cursor: pointer;
    user-select: none;
    transition: color 0.1s;
    display: inline-block;
}

.oll-madame-le-verbe-program .char-interactive:hover {
    opacity: 0.7;
    color: var(--at-primary-l-1);
}

.oll-madame-le-verbe-program .char-pink {
    color: #d63384 !important;
}

/* ==========================================================================
   DRILL LIST
   ========================================================================== */

.oll-madame-le-verbe-program .drill-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    flex: 1;
    width: 100%;
    min-width: 850px;
}

.oll-madame-le-verbe-program .drill-item {
    background: var(--at-neutral-l-10);
    border: 1px solid var(--at-neutral-l-8);
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.oll-madame-le-verbe-program .sentence-row {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--at-neutral-d-6);
}

.oll-madame-le-verbe-program .sentence-text {
    flex: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.oll-madame-le-verbe-program .sentence-input {
    width: 230px !important;
    max-width: 250px;
    min-width: 200px;
    padding: 0;
    border: 1px solid var(--at-neutral-l-8);
    border-radius: 4px;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    color: var(--at-link);
    background: var(--at-neutral-l-10);
    transition: all 0.2s;
    margin: 0 0.5rem;
    line-height: 1;
}

.oll-madame-le-verbe-program .sentence-input:focus {
    border-color: var(--at-link);
    outline: none;
}

.oll-madame-le-verbe-program .sentence-input.correct {
    border-color: var(--at-accent-d-2);
    background-color: #ecfdf5;
    color: var(--at-accent-d-4);
}

.oll-madame-le-verbe-program .sentence-input.incorrect {
    border-color: #ef4444;
    background-color: #fef2f2;
    color: #ef4444;
}

.oll-madame-le-verbe-program .controls-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 2px;
    padding-left: 5px;
    flex-direction: column;
}

.oll-madame-le-verbe-program .btn-speak-inline,
.oll-madame-le-verbe-program .btn-translate {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.6;
    transition: transform 0.2s, opacity 0.2s;
    width: 28px;
    height: 28px;
}

.oll-madame-le-verbe-program .btn-speak-inline svg,
.oll-madame-le-verbe-program .btn-translate svg {
    width: 100%;
    height: 100%;
    fill: var(--at-secondary-d-3);
}

.oll-madame-le-verbe-program .btn-speak-inline:hover,
.oll-madame-le-verbe-program .btn-translate:hover {
    transform: scale(1.1);
    opacity: 1;
}

.oll-madame-le-verbe-program .translation-row {
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: height 0.2s;
}

.oll-madame-le-verbe-program .translation-row.visible {
    visibility: visible;
    height: auto;
    line-height: 1;
}

.oll-madame-le-verbe-program .translation-text {
    font-size: 1.1rem;
    color: var(--at-neutral);
    font-style: italic;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.oll-madame-le-verbe-program .nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--at-neutral-l-8);
    width: 100%;
    min-width: 850px;
}

/* ==========================================================================
   MODAL
   ========================================================================== */

.oll-madame-le-verbe-program .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: ollMlvFadeIn 0.2s ease;
}

.oll-madame-le-verbe-program .modal-overlay.active {
    display: flex;
}

.oll-madame-le-verbe-program .modal-content {
    width: 100%;
    max-width: 500px;
    background: var(--at-neutral-l-10);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--at-neutral-l-8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.oll-madame-le-verbe-program .modal-verb-card {
    margin: 0;
    width: 100%;
    min-width: auto;
    max-width: 100%;
}

/* ==========================================================================
   COMPLETION ICON
   ========================================================================== */

.oll-madame-le-verbe-program .final-icon {
    width: 7rem;
    height: 7rem;
    margin-bottom: 1rem;
}

.oll-madame-le-verbe-program .final-icon svg {
    fill: var(--at-secondary-l-4);
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   VIEWS & UTILITIES
   ========================================================================== */

.oll-madame-le-verbe-program .view {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: ollMlvFadeIn 0.4s ease;
    align-items: center;
}

.oll-madame-le-verbe-program .view.active {
    display: flex;
}

.oll-madame-le-verbe-program .invisible-el {
    visibility: hidden !important;
    pointer-events: none;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes ollMlvFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
