/* Импорт общих стилей */
@import 'common/loading.css';

/* Основные стили страницы салонов */
.salon-page {
    background: #0f0f0f;
    min-height: 100vh;
}

.main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    color: #d4af37;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title i {
    font-size: 2.5rem;
    color: #f4d03f;
    animation: pulse 2s infinite;
}

.page-subtitle {
    color: #a0a0a0;
    font-size: 1.2rem;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Секция фильтров */
.filters-section {
    margin-bottom: 3rem;
    display: none;
}

.filters-row {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-box i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 1.1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.search-box input::placeholder {
    color: #a0a0a0;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-select {
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    min-width: 180px;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.08);
}

.filter-select option {
    background: #1a1a1a;
    color: #ffffff;
}

/* Загрузка и пустое состояние - стили импортированы из common/loading.css */

/* Сетка салонов */
.salons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);
    border-color: #d4af37;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #a0a0a0;
    font-size: 1rem;
}

/* Анимации */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-card {
    animation: fadeIn 0.6s ease-out;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .salons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-title i {
        font-size: 2rem;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .salons-grid {
        /* grid-template-columns: 1fr; */
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pagination {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 1rem 0;
    }
    
    .page-header {
        margin-bottom: 2rem;
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filters-section {
        margin-bottom: 2rem;
    }
    
    .filters-row {
        padding: 1rem;
    }
}

/* Поддержка prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .profile-card,
    .pagination-btn,
    .page-title i {
        transition: none;
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}