/* Стили для страницы городов - SEO Region Module */

.seo-regions-container {
    padding: 30px 0;
}

.seo-regions-header {
    text-align: center;
    margin-bottom: 45px;
}

.seo-regions-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.seo-regions-header .subtitle {
    font-size: 1.3rem;
    color: #7f8c8d;
    margin-bottom: 0;
    font-weight: 400;
}

/* Сетка городов */
.seo-regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 35px;
}

/* Плитка города */
.seo-region-city-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 26px;
    border: 2px solid #e8ecef;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.seo-region-city-card:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.15);
}

.seo-region-city-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #6c757d, #868e96, #adb5bd);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.seo-region-city-card:hover::before {
    opacity: 1;
}

/* Заголовок города - h2 */
.seo-region-city-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 22px;
    line-height: 1.3;
    margin-top: 0;
}

.seo-region-city-title a {
    color: var(--theme-color-1, #2c3e50);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border-bottom: 2px dotted transparent;
    padding-bottom: 2px;
}

.seo-region-city-title a:hover,
.seo-region-city-card:hover .seo-region-city-title a {
    color: var(--theme-color-1, #495057);
    border-bottom-color: var(--theme-color-1, #6c757d);
    transform: translateX(2px);
}

/* Информационные блоки */
.seo-region-info-block {
    margin-bottom: 20px;
    padding: 0;
}

.seo-region-info-block:last-child {
    margin-bottom: 0;
}

/* Заголовок с иконкой */
.seo-region-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.seo-region-info-icon {
    width: 22px;
    height: 22px;
    color: #7f8c8d;
    font-size: 20px;
    text-align: center;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.seo-region-info-label {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
}

/* Значение */
.seo-region-info-value {
    color: #34495e;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
    margin-left: 30px; /* Отступ для выравнивания с иконкой */
}

/* Эффекты hover */
.seo-region-city-card:hover .seo-region-info-icon {
    color: #495057;
}

.seo-region-city-card:hover .seo-region-info-label {
    color: #343a40;
}

.seo-region-city-card:hover .seo-region-info-value {
    color: #212529;
}


/* Адаптивность */
@media (max-width: 768px) {
    .seo-regions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seo-regions-header h1 {
        font-size: 2.2rem;
    }
    
    .seo-region-city-card {
        padding: 24px 20px;
        min-height: 160px;
    }
    
    .seo-region-group-title {
        font-size: 1.8rem;
    }
    
    .seo-region-city-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .seo-regions-container {
        padding: 20px 0;
    }
    
    .seo-regions-header {
        margin-bottom: 35px;
    }
    
    .seo-regions-header h1 {
        font-size: 1.9rem;
    }
    
    .seo-region-city-card {
        padding: 20px 16px;
        min-height: 140px;
    }
    
    .seo-region-city-title {
        font-size: 1.2rem;
        margin-bottom: 14px;
    }
    
    .seo-region-group-title {
        font-size: 1.6rem;
    }
    
    .seo-region-info-content {
        font-size: 0.95rem;
    }
}

/* Загрузка и анимация */
.regions-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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