/* Sentence-based Learning Styles */

/* Mode Toggle */
.mode-toggle {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.mode-btn {
    padding: 12px 30px;
    font-size: 16px;
    background: #e0e0e0;
    color: #666;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.mode-btn:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

.mode-btn.active {
    background: #4472C4;
    color: white;
    border-color: #2E75B6;
}

/* Verb Sections in List View */
.verb-group {
    margin-bottom: 40px;
}

.verb-group-header {
    font-size: 1.6em;
    color: #2E75B6;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4472C4;
}

/* Sentence Cards */
.sentence-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.sentence-card:hover {
    border-color: #4472C4;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sentence-verb-heading {
    font-size: 1.1em;
    font-weight: bold;
    color: #2E75B6;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

/* Sentence Text with Tooltip */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
}

.sentence-text {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.sentence-input {
    display: inline-block;
    min-width: 100px;
    padding: 5px 10px;
    border: none;
    border-bottom: 2px solid #4472C4;
    font-size: 1.2em;
    color: #2E75B6;
    font-weight: bold;
    background: transparent;
    text-align: center;
}

.sentence-input:focus {
    outline: none;
    border-bottom-color: #2E75B6;
    background: #f8f9fa;
}

.sentence-input.correct {
    border-bottom-color: #2ecc71;
    background: #e8f8f5;
    color: #27ae60;
}

.sentence-input.incorrect {
    border-bottom-color: #e74c3c;
    background: #fadbd8;
    color: #c0392b;
}

/* Tooltip Styles */
.tooltip-text {
    visibility: hidden;
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Mobile: tap to toggle tooltip */
.tooltip-wrapper.active .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Sentence Card Actions */
.sentence-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.sentence-actions .speaker-btn {
    font-size: 18px;
}

.sentence-actions .check-btn {
    flex: 1;
    max-width: 120px;
}

.sentence-actions .feedback {
    flex: 1;
    min-width: 150px;
}

/* Sequential Mode Styles */
.sequential-card {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border: 3px solid #4472C4;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.sequential-card .sentence-text {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 30px;
}

.sequential-card .sentence-input {
    min-width: 150px;
    font-size: 1.5em;
}

.sequential-card .sentence-actions {
    justify-content: center;
    margin-top: 25px;
}

/* Stats Panel */
.stats-panel {
    background: white;
    border: 2px solid #9b59b6;
    border-radius: 10px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stats-panel h3 {
    color: #9b59b6;
    margin-top: 0;
    margin-bottom: 20px;
}

.stats-panel h4 {
    color: #2E75B6;
    margin-top: 15px;
    margin-bottom: 10px;
}

.stats-panel button {
    padding: 10px 20px;
    background: #9b59b6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.stats-panel button:hover {
    background: #8e44ad;
}

/* Sequential Navigation */
.sequential-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.nav-btn {
    padding: 12px 25px;
    background: #4472C4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: #2E75B6;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.sentence-counter {
    font-size: 1.2em;
    font-weight: bold;
    color: #2E75B6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mode-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .mode-btn {
        width: 100%;
        padding: 14px;
    }

    .sentence-card {
        padding: 15px;
    }

    .sentence-verb-heading {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .sentence-text {
        font-size: 1.1em;
    }

    .sentence-input {
        min-width: 80px;
        font-size: 1em;
    }

    .sentence-actions {
        flex-direction: column;
        gap: 10px;
    }

    .sentence-actions .check-btn {
        max-width: none;
        width: 100%;
    }

    .sequential-card {
        padding: 20px;
    }

    .sequential-card .sentence-text {
        font-size: 1.3em;
    }

    .sequential-card .sentence-input {
        min-width: 100px;
        font-size: 1.2em;
    }

    .sequential-nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
    }

    /* Tooltip positioning for mobile */
    .tooltip-text {
        bottom: auto;
        top: 130%;
        font-size: 13px;
        white-space: normal;
        max-width: 250px;
    }

    .tooltip-text::after {
        top: auto;
        bottom: 100%;
        border-top-color: transparent;
        border-bottom-color: #333;
    }
}
