/* Стили для страницы фигуристов */

/* Герой-секция */
.skaters-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1548695607-9c73430ba065?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    border-radius: 0 0 20px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Фильтр фигуристов */
.skaters-filter {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.filter-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.filter-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Сетка фигуристов */
.skaters-grid-section {
    padding: 2rem 0;
}

.skaters-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Карточки фигуристов */
.skater-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.skater-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skater-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.skater-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.skater-card:hover .skater-image img {
    transform: scale(1.1);
}

.skater-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.skater-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    color: #667eea;
    z-index: 1;
}

.skater-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.skater-info h3 {
    font-size: 1.5em;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.skater-type {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9em;
}

.skater-achievements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.achievement {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #5a6c7d;
    border-left: 3px solid #667eea;
}

.skater-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
    font-size: 0.9em;
    color: #7f8c8d;
}

.skater-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.skater-stats i {
    color: #667eea;
    width: 16px;
}

.view-more-btn {
    margin-top: auto;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background: #5a6fd8;
    transform: translateX(5px);
}

/* Цветовые акценты для категорий */
.skater-card.women .skater-category {
    background: rgba(255, 255, 255, 0.9);
    color: #c44569;
}

.skater-card.men .skater-category {
    background: rgba(255, 255, 255, 0.9);
    color: #2d46b9;
}

.skater-card.pairs .skater-category {
    background: rgba(255, 255, 255, 0.9);
    color: #6c5ce7;
}

.skater-card.dance .skater-category {
    background: rgba(255, 255, 255, 0.9);
    color: #00b894;
}

/* Секция достижений */
.achievements-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 2rem;
    margin: 4rem 0;
    border-radius: 20px;
}

.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
}

.achievements-container h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
}

.achievement-icon {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    font-size: 1.3em;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.achievement-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Секция тренеров */
.coaches-section {
    padding: 4rem 2rem;
}

.coaches-container {
    max-width: 1200px;
    margin: 0 auto;
}

.coaches-container h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.coaches-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.coach-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    transition: transform 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-5px);
}

.coach-image {
    width: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.coach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-info {
    flex: 1;
    padding: 2rem;
}

.coach-info h3 {
    font-size: 1.5em;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.coach-category {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.coach-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
    color: #7f8c8d;
    font-size: 0.9em;
}

.coach-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coach-stats i {
    color: #667eea;
    width: 16px;
}

.coach-description {
    color: #5a6c7d;
    line-height: 1.6;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
    position: relative;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2em;
    color: #666;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 2rem;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.modal-title h2 {
    font-size: 2em;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.modal-skater .skater-category {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1em;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item i {
    font-size: 1.5em;
    color: #667eea;
}

.detail-item strong {
    display: block;
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.detail-item p {
    color: #7f8c8d;
    margin: 0;
}

.section {
    margin-bottom: 1.5rem;
}

.section h3 {
    font-size: 1.3em;
    margin-bottom: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section h3 i {
    color: #667eea;
}

.achievements-list, .records-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements-list li, .records-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    color: #5a6c7d;
}

.description {
    line-height: 1.8;
    color: #5a6c7d;
    font-size: 1.1em;
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skater-card:nth-child(1) { animation-delay: 0.1s; }
.skater-card:nth-child(2) { animation-delay: 0.2s; }
.skater-card:nth-child(3) { animation-delay: 0.3s; }
.skater-card:nth-child(4) { animation-delay: 0.4s; }
.skater-card:nth-child(5) { animation-delay: 0.5s; }
.skater-card:nth-child(6) { animation-delay: 0.6s; }
.skater-card:nth-child(7) { animation-delay: 0.7s; }
.skater-card:nth-child(8) { animation-delay: 0.8s; }
.skater-card:nth-child(9) { animation-delay: 0.9s; }
.skater-card:nth-child(10) { animation-delay: 1.0s; }
.skater-card:nth-child(11) { animation-delay: 1.1s; }
.skater-card:nth-child(12) { animation-delay: 1.2s; }
.skater-card:nth-child(13) { animation-delay: 1.3s; }

/* Адаптивность */
@media (max-width: 1200px) {
    .skaters-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .coaches-slider {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    .skaters-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.2em;
    }
    
    .hero-content p {
        font-size: 1.2em;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .skaters-container {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .skaters-filter {
        padding: 1.5rem;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .coach-card {
        flex-direction: column;
    }
    
    .coach-image {
        width: 100%;
        height: 200px;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .skater-image {
        height: 200px;
    }
    
    .coaches-slider {
        grid-template-columns: 1fr;
    }
    
    .skaters-hero {
        height: auto; 
        min-height: 350px; 
        padding: 40px 20px; 
    }
    
    .hero-content {
        width: 100%; 
        box-sizing: border-box; 
    }
    
    .hero-content h1 {
        font-size: 1.8em;
        word-break: break-word;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8em;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .filter-options {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* Улучшенные стили для мобильных устройств */
@media (max-width: 768px) {
    .skater-info h3 {
        font-size: 1.3em;
    }
    
    .skater-type {
        font-size: 0.85em;
    }
    
    .achievement {
        font-size: 0.85em;
        padding: 6px 10px;
    }
    
    .skater-stats {
        font-size: 0.85em;
    }
    
    .view-more-btn {
        padding: 10px;
        font-size: 0.9em;
    }
}

/* Стили для состояний загрузки */
.skater-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Улучшенные тени для глубины */
.skater-card,
.achievement-card,
.coach-card,
.news-card {
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.05),
        0 4px 8px rgba(0,0,0,0.05),
        0 8px 16px rgba(0,0,0,0.05);
}

.skater-card:hover,
.achievement-card:hover,
.coach-card:hover,
.news-card:hover {
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        0 8px 16px rgba(0,0,0,0.1),
        0 16px 32px rgba(0,0,0,0.1);

}

