@import "css/global.css";

/*Header*/
#header {
    background: url("../images/header-background.jpg") no-repeat fixed center;
    min-width: 100%;
    min-height: 300px;
    height: 25vh;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
}

#header .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 100px 150px;
    width: 100%;
}

#header .content .info {
    display: flex;
    flex-direction: column;
}

#header .content .info .title {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 55px;
    font-weight: 900;
    text-align: center;
}

#header .content .info .title span {
    color: var(--main-color);
}

#header .content .description {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
    text-align: center;
}

/* Статистика команды */
.team-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: -50px auto 40px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: #242424;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
}

.stat-card .stat-number {
    color: var(--main-color);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-card .stat-label {
    color: #888;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* СЕКЦИЯ КОМАНДА */
.team {
    padding: 60px 20px 40px;
    background-color: #222;
}

.team-categories {
    max-width: 1300px;
    margin: 0 auto;
}

.category {
    margin-bottom: 70px;
}

.category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--main-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 0 10px rgba(240, 199, 94, 0.3);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
    border-radius: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.team-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(240, 199, 94, 0.25);
    border-color: var(--main-color);
}

.card-header {
    background: linear-gradient(135deg, #242424 0%, #1a1a1a 100%);
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--main-color), transparent);
}

.member-head {
    width: 110px;
    height: 110px;
    border-radius: 16%;
    object-fit: cover;
    margin-bottom: 15px;
    background: #333;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.team-card:hover .member-head {
    transform: scale(1.05);
}

.member-name {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.member-role {
    font-size: 1rem;
    color: var(--main-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(240, 199, 94, 0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

.card-body {
    padding: 25px 20px;
    flex-grow: 1;
    background: #1d1d1d;
}

.member-description {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

/* Модальное окно */
.member-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: modalFadeIn 0.3s ease;
}

.member-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-modal .modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border: 2px solid var(--main-color);
    border-radius: 25px;
    padding: 40px;
    max-width: 1100px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.4s ease;
    box-shadow: 0 20px 60px rgba(240, 199, 94, 0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #888;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-modal:hover {
    color: var(--main-color);
}

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* Левая часть - скин */
.modal-skin-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skin-container {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skin-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.skin-control-btn {
    background: #242424;
    border: 2px solid var(--main-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skin-control-btn i {
    color: var(--main-color);
}

.skin-control-btn:hover {
    background: var(--main-color);
    color: #1a1a1a;
    transform: scale(1.05);
}

.skin-control-btn:hover i {
    color: #1a1a1a;
}

/* Правая часть - информация */
.modal-info-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.modal-member-name {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.modal-member-role {
    font-size: 1.3rem;
    color: var(--main-color);
    font-weight: 600;
    margin: -10px 0 0;
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 10px 0;
}

.modal-stat-item {
    background: #242424;
    padding: 20px 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.modal-stat-item:hover {
    border-color: var(--main-color);
    transform: translateY(-3px);
}

.modal-stat-item i {
    font-size: 2rem;
    color: var(--main-color);
    min-width: 40px;
    text-align: center;
}

.stat-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stat-label {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.stat-value {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 4px;
}

.modal-bio, .modal-activities {
    background: #242424;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #333;
}

.modal-bio h3, .modal-activities h3 {
    color: var(--main-color);
    font-size: 1.3rem;
    margin: 0 0 15px;
}

#memberBio {
    color: #bbb;
    line-height: 1.7;
    margin: 0;
}

#recentActivities {
    list-style: none;
    padding: 0;
    margin: 0;
}

#recentActivities li {
    color: #bbb;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#recentActivities li i {
    color: var(--main-color);
    font-size: 1rem;
}

/* Стили для загрузки и ошибок скина */
.skin-loading {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--main-color);
    font-size: 1.2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    animation: pulse 1.5s infinite;
}

.skin-error {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Секция информации о команде - ИСПРАВЛЕНО */
.team-info {
    padding: 60px 20px 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    text-align: center;
}

.team-info .content {
    max-width: 800px;
    margin: 0 auto;
}

.team-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.team-info p {
    color: #bbb;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.team-apply-link {
    text-decoration: none;
    display: inline-block;
}

.team-apply-button {
    background: var(--main-color);
    border: none;
    color: #1a1a1a;
    padding: 15px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(240, 199, 94, 0.3);
    border: 2px solid var(--main-color);
}

.team-apply-button:hover {
    background: transparent;
    color: var(--main-color);
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(240, 199, 94, 0.5);
}

/* Стили для навигационной кнопки */
.nav-button {
    background-color: #f0c75e;
    border: none;
    color: #1a1a1a;
    padding: 8px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-button:hover {
    background-color: #ffd966;
    transform: scale(1.05);
}

/* Анимации */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Адаптивность */
@media screen and (max-width: 1625px) {
    #header .content {
        padding: 100px 90px;
    }
}

@media screen and (max-width: 1000px) {
    .team-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -30px;
    }
    
    .modal-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skin-container {
        height: 350px;
    }
    
    .modal-stats {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 819px) {
    #header .content {
        padding: 80px 30px;
    }

    #header .content .info .title {
        font-size: 40px;
    }

    #header .content .description {
        font-size: 16px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .team-info h2 {
        font-size: 1.8rem;
    }
    
    .team-info p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 600px) {
    .team-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 300px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .member-head {
        width: 90px;
        height: 90px;
    }
    
    .member-name {
        font-size: 1.4rem;
    }
    
    .modal-member-name {
        font-size: 2rem;
    }
    
    .skin-container {
        height: 300px;
    }
    
    .skin-controls {
        flex-direction: column;
    }
    
    .modal-stat-item {
        padding: 15px;
    }
    
    .stat-label {
        white-space: normal;
    }
}

@media screen and (max-width: 530px) {
    #header .content {
        justify-content: start;
        align-items: start;
    }

    #header .content .info .title {
        font-size: 30px;
    }
}