/* Irregular Verbs Page Specific Styles */

/* Page Header */
.page-header {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    text-align: center;
}

.quick-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Introduction Section */
.intro-section {
    padding: 2rem 0;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1.2rem;
}

.verb-stats {
    margin: 2rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 0.5rem;
}

.note-box {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info-color);
    margin-top: 1.5rem;
}

/* Search Section */
.search-section {
    padding: 2rem 0;
}

.search-tools {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
}

.search-box button {
    padding: 0.75rem 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.filter-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

/* Verbs Table Section */
.verbs-section {
    padding: 2rem 0;
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.verbs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.verbs-table th,
.verbs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.verbs-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
}

.verbs-table th:hover {
    background: var(--bg-tertiary);
}

.sort-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.sort-btn:hover {
    color: var(--primary-color);
}

.verbs-table tbody tr {
    transition: background-color 0.2s ease;
}

.verbs-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.base-form {
    position: relative;
    cursor: help;
    display: inline-block;
}

.translation-tooltip {
    position: fixed;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: normal;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    max-height: 300px;
    word-wrap: break-word;
    text-align: center;
    pointer-events: none;
    transform: translate(calc(-50% + 20px), -100%);
    /* ← СДВИГ ВПРАВО */
}

.translation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: calc(50% - 20px);
    /* ← СДВИГ СТРЕЛКИ */
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}

.base-form:hover .translation-tooltip {
    opacity: 1;
    visibility: visible;
}

.table-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Tips Section */
.tips-section {
    padding: 2rem 0;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.tip-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Practice Section */
.practice-section {
    padding: 2rem 0;
}

.practice-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.activity-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.activity-instruction {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.fill-blanks-exercise,
.matching-game {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exercise-item,
.matching-item {
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
}

.matching-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.base-verb {
    font-weight: 600;
    color: var(--primary-color);
    min-width: 80px;
}

.verb-options,
.matching-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.verb-option,
.match-option {
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.verb-option:hover,
.match-option:hover {
    background: var(--primary-color);
    color: white;
}

.verb-option.correct,
.match-option.correct {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.verb-option.incorrect,
.match-option.incorrect {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
}

/* Related Topics */
.related-topics {
    padding: 2rem 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.topic-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.topic-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.topic-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.topic-name {
    font-weight: 600;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tip-card,
.activity-card,
.stat-card {
    animation: fadeInUp 0.6s ease forwards;
}

.tip-card:nth-child(2) {
    animation-delay: 0.1s;
}

.tip-card:nth-child(3) {
    animation-delay: 0.2s;
}

.tip-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-nav {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        width: 200px;
        text-align: center;
    }

    .filter-options {
        flex-direction: column;
        gap: 1rem;
    }

    .search-results-info {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .verbs-table {
        font-size: 0.9rem;
    }

    .verbs-table th,
    .verbs-table td {
        padding: 0.75rem 0.5rem;
    }

    .tips-grid,
    .practice-activities {
        grid-template-columns: 1fr;
    }

    .matching-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .base-verb {
        min-width: auto;
    }

    .table-actions {
        flex-direction: column;
    }

    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .verbs-table {
        font-size: 0.8rem;
    }

    .verbs-table th,
    .verbs-table td {
        padding: 0.5rem 0.25rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .verb-options,
    .matching-options {
        flex-direction: column;
    }

    .verb-option,
    .match-option {
        width: 100%;
    }
}

/* Print Styles */
@media print {

    .quick-nav,
    .search-section,
    .practice-section,
    .related-topics {
        display: none;
    }

    .verbs-table {
        box-shadow: none;
        border: 1px solid #000;
    }

    .verbs-table th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }

    .page-header {
        background: none !important;
        padding: 1rem 0;
    }
}