﻿.guessing-card-question {
    position: relative;
    font-weight: 600;
    font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
}

.type-your-answer {
    width: 100%;
    border: 0;
    outline: 0;
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    background-color: transparent;
    height: 3.5rem;
    flex: 1;
    position: relative;
    color: var(--voclex-black);
    text-align: left;
    display: inline-block;
    min-width: 12.25rem;
    max-width: 100%;
    padding: 0;
}

.type-your-answer::placeholder {
    color: var(--voclex-grey-light, #94A3B8);
}

.term-input {
    position: relative;
    align-self: stretch;
    border-radius: 12px;
    background-color: var(--color-white);
    border: 2px solid var(--voclex-gray-200, #E2E8F0);
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--padding-3xs) var(--padding-mini);
    max-width: 100%;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.term-input:focus-within {
    border-color: var(--voclex-accent, #2563EB);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.tries-inside-input {
    display: flex;
    position: relative;
    gap: 0.3rem;
    margin-left: 0.5rem;
    padding-right: 0.2rem;
}
    .tries-inside-input::after {
        content: "tries left";
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%) translateY(-0.25rem);
        white-space: nowrap;
        font-size: 0.65rem;
        color: var(--voclex-grey);
        opacity: 0;
        transition: opacity 0.2s;
        pointer-events: none;
    }

    .tries-inside-input:hover::after {
        opacity: 1;
    }

.try-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    transition: background-color 150ms ease-in-out, box-shadow 150ms ease-in-out, transform 150ms ease-in-out;
}

    .try-dot.remaining {
        background: linear-gradient(135deg, var(--voclex-green, #10B981) 0%, var(--voclex-green-dark, #059669) 100%);
        box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
    }

    .try-dot.used {
        background-color: var(--voclex-gray-300, #CBD5E1);
        transform: scale(0.9);
    }


.learning-module-text {
    height: 5rem;
    flex: 1;
    position: relative;
    display: inline-block;
    max-width: calc(100% - 0px);
    overflow-y: auto;
    line-height: 1.6;
}

.learning-module-text-wrapper {
    align-self: stretch;
    border-radius: 12px;
    background: rgba(219, 234, 254, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: var(--padding-3xs) var(--padding-base);
    box-sizing: border-box;
    white-space: normal;
    max-width: 100%;
    font-size: var(--font-size-base);
}

.guessing-modules {
    padding: 0 0 8.75rem;
    box-sizing: border-box;
    gap: var(--gap-5xs);
    min-height: 15.25rem;
}

.guessing-modules,
.term-input-parent,
.guessing-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 100%;
}

.term-input-parent {
    gap: var(--gap-base);
    align-self: center;
    width: 90%;
    max-width: var(--flashcard-width);
}

.guessing-card {
    gap: 2rem;
    height: 43.375rem;
    flex-shrink: 0;
    animation: fadeSlideIn 0.4s ease-out;
}

.card-submit-text {
    position: relative;
    font-size: var(--font-size-base);
    font-family: var(--font-body);
    color: var(--color-white);
    text-align: center;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.card-submit-button {
    cursor: pointer;
    border: 0;
    padding: var(--padding-xs) 0;
    background: linear-gradient(135deg, var(--voclex-accent, #2563EB) 0%, var(--voclex-accent-dark, #1D4ED8) 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 10.625rem;
    box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -8px rgba(37, 99, 235, 0.5);
}

.card-submit-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px -3px rgba(37, 99, 235, 0.4);
}

.next-button {
    width: 13.5rem;
}

.repetition-buttons-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 4rem;
    padding: 0 0.062rem;
    gap: var(--gap-base);
}

.terms-repetition-section,
.terms-repetition-container {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.terms-repetition-section {
    align-self: stretch;
    align-items: center;
    justify-content: center;
    padding: 0;
    gap: var(--gap-base);
    max-width: 100%;
    text-align: left;
    font-size: var(--font-size-xl);
    color: var(--voclex-black);
    font-family: var(--font-body);
}

.terms-repetition-container {
    width: 100%;
    height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 50%, #EEF2FF 100%);
    overflow: hidden;
    align-items: flex-start;
    justify-content: flex-start;
    padding: var(--padding-5xl) var(--padding-base) 1.812rem;
    gap: 0.187rem;
    letter-spacing: normal;
    line-height: normal;
}

@media screen and (max-width: 210px) {
    .card-submit-button {
        width: calc(100% - 40px);
    }
}


.term-details {
    display: flex;
    height: 18.75rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow-y: auto;
    flex-shrink: 0;
    max-width: 50rem;
}

.term-name-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    animation: fadeSlideIn 0.3s ease-out;
}

.term-name {
    color: var(--voclex-black, #1E293B);
    font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.term-type {
    color: var(--voclex-accent, #2563EB);
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.75rem;
    font-style: italic;
    font-weight: 500;
    line-height: normal;
    background: var(--voclex-accent-light, #DBEAFE);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.learning-module-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 100%;
    gap: 0.5rem;
    animation: fadeSlideIn 0.4s ease-out;
    animation-fill-mode: both;
}

.learning-module-section:nth-child(1) { animation-delay: 100ms; }
.learning-module-section:nth-child(2) { animation-delay: 200ms; }

.learning-module-title {
    color: var(--voclex-gray-500, #64748B);
    text-align: center;
    font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.picture-and-progress-container {
    gap: 1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.progress-container {
    display: flex;
    gap: 0.375rem;
}

.progress-rect {
    width: 0.375rem;
    height: 0.625rem;
    border-radius: 0.25rem;
    background-color: var(--voclex-gray-200, #E2E8F0);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .progress-rect.filled {
        background: linear-gradient(135deg, var(--voclex-green, #10B981) 0%, var(--voclex-green-dark, #059669) 100%);
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    }


.no-terms-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    max-width: var(--flashcard-width);
    animation: fadeSlideIn 0.5s ease-out;
}

.no-terms-image {
    width: 9rem;
    object-fit: contain;
    animation: pulse 2s ease-in-out infinite;
}

.no-terms-title {
    font-weight: 700;
    font-family: var(--font-headings, 'Plus Jakarta Sans', sans-serif);
    color: var(--voclex-black, #1E293B);
    font-size: 1.25rem;
}

.no-terms-description {
    font-size: var(--font-size-base);
    color: var(--voclex-grey, #64748B);
    line-height: 1.6;
}

.no-terms-actions {
    display: flex;
    flex-direction: column;
    gap: var(--gap-base);
    width: 100%;
    max-width: 16rem;
}

.vl-btn-secondary {
    background: var(--voclex-secondary, #DBEAFE);
    color: var(--voclex-accent, #2563EB);
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.vl-btn-secondary:hover {
    background: var(--voclex-secondary-hover, #BFDBFE);
    transform: translateY(-2px);
}