/* ==========================================
   📖 КУЛИНАРНЫЙ СЛОВАРЬ
   ========================================== */

.dictionary-container {
    padding-top: 20px !important;
    padding-bottom: 60px !important;
}

.dictionary-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.dictionary-page-title {
    font-size: 28px;
    font-weight: 800;
    color: #2C1810;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dictionary-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: #8b5cf6;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}
.dictionary-back-btn:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-2px);
}

/* === ОСНОВНАЯ КАРТОЧКА === */
.dictionary-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* === ПОИСК === */
.dictionary-search-section {
    margin-bottom: 25px;
}

.dictionary-search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.dictionary-search-input {
    flex: 1;
    min-width: 250px;
    padding: 12px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.dictionary-search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* === КНОПКИ === */
.dictionary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.dictionary-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}
.dictionary-btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}
.dictionary-btn-outline {
    background: white;
    border: 2px solid #8b5cf6;
    color: #8b5cf6;
}
.dictionary-btn-outline:hover {
    background: #8b5cf6;
    color: white;
    transform: translateY(-2px);
}

/* === АЛФАВИТ === */
.dictionary-alphabet-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}
.dictionary-alphabet-nav a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}
.dictionary-alphabet-nav a:hover,
.dictionary-alphabet-nav a.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* === СТАТИСТИКА === */
.dictionary-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}
.dictionary-stat-badge {
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}
.dictionary-stat-badge-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

/* === СПИСОК ТЕРМИНОВ === */
.dictionary-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dictionary-term-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}
.dictionary-term-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.dictionary-term-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.dictionary-term-title {
    font-size: 18px;
    font-weight: 700;
    color: #2C1810;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.dictionary-term-category {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.dictionary-term-definition {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
}

.dictionary-term-meta {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
}

/* === ПУСТОЕ СОСТОЯНИЕ === */
.dictionary-empty-state {
    text-align: center;
    padding: 50px 20px;
}
.dictionary-empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
    display: block;
}
.dictionary-empty-title {
    font-size: 22px;
    font-weight: 700;
    color: #2C1810;
    margin: 0 0 10px;
}
.dictionary-empty-text {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* === УВЕДОМЛЕНИЯ === */
.dictionary-alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid;
    font-weight: 600;
    line-height: 1.6;
}
.dictionary-alert-info {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #3730a3;
    border-color: #8b5cf6;
}

/* === БЛОК ДЕЙСТВИЙ === */
.dictionary-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e2e8f0;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .dictionary-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dictionary-search-form {
        flex-direction: column;
    }
    .dictionary-search-input {
        width: 100%;
        min-width: 100%;
    }
    .dictionary-alphabet-nav a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .dictionary-card {
        padding: 20px;
    }
    .dictionary-term-card {
        padding: 15px;
    }
    .dictionary-actions {
        flex-direction: column;
    }
    .dictionary-btn {
        width: 100%;
    }
}