/* Стили для пустых состояний категорий */

/* Основные стили для пустых состояний */
.empty-category-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.empty-category-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.empty-category-icon {
    font-size: 5rem;
    color: #ecf0f1;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 0.8; 
        transform: scale(1); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.05); 
    }
}

.empty-category-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.empty-category-message {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: #bdc3c7;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.empty-category-suggestion {
    font-size: 1rem;
    color: #95a5a6;
    margin-top: 1rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Стили для кнопки обновления */
.empty-category-refresh {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    position: relative;
    z-index: 1;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.empty-category-refresh:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

.empty-category-refresh:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.empty-category-refresh i {
    font-size: 1.1rem;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Стили для состояний загрузки */
.loading-category-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #34495e;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: #bdc3c7;
    font-weight: 500;
}

/* Стили для ошибок */
.error-category-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
}

.error-category-icon {
    font-size: 5rem;
    color: #ecf0f1;
    margin-bottom: 2rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-category-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.error-category-message {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: #fadbd8;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 500;
}

/* Стили для успешных состояний */
.success-category-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

.success-category-icon {
    font-size: 5rem;
    color: #ecf0f1;
    margin-bottom: 2rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.success-category-title {
    font-family: 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ecf0f1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.success-category-message {
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
    color: #d5f4e6;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    font-weight: 500;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .empty-category-container,
    .loading-category-container,
    .error-category-container,
    .success-category-container {
        padding: 3rem 1.5rem;
        margin: 1.5rem auto;
        max-width: 90%;
    }
    
    .empty-category-icon,
    .error-category-icon,
    .success-category-icon {
        font-size: 4rem;
        margin-bottom: 1.5rem;
    }
    
    .empty-category-title,
    .error-category-title,
    .success-category-title {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .empty-category-message,
    .error-category-message,
    .success-category-message {
        font-size: 1.1rem;
    }
    
    .empty-category-refresh {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .empty-category-container,
    .loading-category-container,
    .error-category-container,
    .success-category-container {
        padding: 2.5rem 1rem;
        margin: 1rem auto;
        max-width: 95%;
    }
    
    .empty-category-icon,
    .error-category-icon,
    .success-category-icon {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }
    
    .empty-category-title,
    .error-category-title,
    .success-category-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .empty-category-message,
    .error-category-message,
    .success-category-message {
        font-size: 1rem;
    }
    
    .empty-category-refresh {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* Стили для высокого контраста */
@media (prefers-contrast: high) {
    .empty-category-container,
    .loading-category-container,
    .error-category-container,
    .success-category-container {
        border: 3px solid #000;
    }
    
    .empty-category-title,
    .error-category-title,
    .success-category-title {
        font-weight: 900;
    }
    
    .empty-category-message,
    .error-category-message,
    .success-category-message {
        font-weight: 600;
    }
}

/* Стили для уменьшенной анимации */
@media (prefers-reduced-motion: reduce) {
    .empty-category-container::before,
    .empty-category-icon,
    .empty-category-refresh i,
    .loading-spinner,
    .error-category-icon,
    .success-category-icon {
        animation: none;
    }
    
    .empty-category-refresh:hover {
        transform: none;
    }
}

/* Дополнительные эффекты для лучшего UX */
.empty-category-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.empty-category-container:active {
    transform: translateY(-2px);
}

/* Стили для фокуса с клавиатуры */
.empty-category-refresh:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 3px;
}

/* Стили для состояний с иконками */
.empty-category-container.with-icon {
    padding-top: 3rem;
}

.empty-category-container.with-icon .empty-category-icon {
    margin-top: -1rem;
}

/* Стили для состояний с кнопками */
.empty-category-container.with-button {
    padding-bottom: 3rem;
}

.empty-category-container.with-button .empty-category-refresh {
    margin-top: 1.5rem;
}

/* Стили для состояний с дополнительной информацией */
.empty-category-container.with-info {
    padding: 3rem 2rem;
}

.empty-category-container.with-info .empty-category-message {
    margin-bottom: 1rem;
}

.empty-category-container.with-info .empty-category-suggestion {
    margin-top: 0.5rem;
}
