/* ========== СТРАНИЦА АДМИНИСТРАЦИИ ========== */

/* Заголовок */
.staff-header {
    text-align: center;
    margin: 40px 0 60px;
}

.staff-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.staff-description {
    color: var(--text-secondary);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Рамка с описанием */
.staff-description-box {
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid var(--orange-primary);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    margin: 15px 0 10px;
    transition: all 0.3s;
    flex-grow: 1; /* Растягивается, чтобы занять место */
    display: flex;
    align-items: center;
}

.staff-card:hover .staff-description-box {
    background: rgba(255, 140, 66, 0.15);
    border-color: var(--orange-light);
    box-shadow: var(--shadow-orange);
}

.staff-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    width: 100%;
}

/* Год внизу */
.staff-year {
    display: inline-block;
    background: rgba(255, 140, 66, 0.2);
    border: 1px solid var(--orange-primary);
    border-radius: 40px;
    padding: 5px 15px;
    font-size: 13px;
    color: var(--orange-light);
    margin: 5px 0 15px;
    align-self: center;
    transition: all 0.3s;
}

.staff-card:hover .staff-year {
    background: var(--gradient-orange);
    color: white;
    border-color: transparent;
}

/* Обновлённая карточка */
.staff-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Остальные стили остаются без изменений */
.staff-rank {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    opacity: 0.5;
}

.staff-avatar {
    font-size: 64px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--orange-primary));
}

.staff-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.staff-role {
    color: var(--orange-light);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.staff-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
}

.staff-social .social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.staff-social .social-link:hover {
    background: var(--orange-primary);
    color: white;
    transform: translateY(-3px);
}

/* Секция создателя */
.creator-section {
    position: relative;
    margin: 60px 0;
}

.creator-crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    filter: drop-shadow(0 0 20px gold);
    animation: crownFloat 3s infinite alternate;
    z-index: 10;
}

@keyframes crownFloat {
    0% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(-10px); }
}

.creator-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background: linear-gradient(135deg,
    rgba(255, 140, 66, 0.2),
    rgba(58, 110, 165, 0.2),
    rgba(255, 215, 0, 0.1));
    border: 2px solid gold;
    border-radius: var(--border-radius-xl);
    padding: 50px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
}

.creator-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.creator-avatar {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8c42, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    border: 4px solid gold;
    box-shadow: 0 0 50px gold;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, gold, transparent 70%);
    opacity: 0.5;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.creator-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.creator-badge {
    display: inline-block;
    background: linear-gradient(135deg, gold, #ff8c42);
    color: #0a0f1a;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    box-shadow: 0 0 20px gold;
}

.creator-name {
    font-size: 56px;
    font-weight: 800;
    color: gold;
    text-shadow: 0 0 20px gold;
    margin-bottom: 15px;
    line-height: 1.2;
}

.creator-titles {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.title {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid gold;
    color: gold;
    padding: 5px 15px;
    border-radius: 40px;
    font-size: 14px;
}

.creator-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
    max-width: 500px;
}

.creator-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: gold;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creator-runes {
    position: absolute;
    bottom: 20px;
    right: 30px;
    font-size: 32px;
    color: gold;
    opacity: 0.3;
    letter-spacing: 8px;
    transform: rotate(-10deg);
}

/* Разделитель */
.staff-divider {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 60px;
}

.divider-rune {
    font-size: 32px;
    color: var(--orange-primary);
    opacity: 0.5;
    animation: runePulse 2s infinite alternate;
}

.divider-rune:nth-child(2) { animation-delay: -0.3s; }
.divider-rune:nth-child(3) { animation-delay: -0.6s; }
.divider-rune:nth-child(4) { animation-delay: -0.9s; }
.divider-rune:nth-child(5) { animation-delay: -1.2s; }
.divider-rune:nth-child(6) { animation-delay: -1.5s; }

@keyframes runePulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.2); }
}

/* Сетка администрации */
.staff-grid-section {
    margin: 60px 0;
}

.staff-subtitle {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Фиксированно 3 колонки */
    gap: 30px;
    justify-content: center;
    align-items: stretch; /* Растягиваем карточки по высоте */
}

.staff-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-radius: var(--border-radius-xl);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Полная высота */
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
        gap: 20px;
    }
}

/* Адаптация для мобилок */
@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобилке */
        max-width: 400px;
        margin: 0 auto;
    }

    .staff-subtitle {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        max-width: 100%;
    }

    .staff-card {
        padding: 25px 15px;
    }
}

.staff-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange-primary);
    box-shadow: var(--shadow-orange);
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-orange);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.staff-card:hover::before {
    transform: scaleX(1);
}

/* Цвета для разных ролей */
.staff-card.admin {
    border-top: 4px solid #ff4444;
}

.staff-card.dev {
    border-top: 4px solid #4caf50;
}

.staff-card.mod {
    border-top: 4px solid #2196f3;
}

.staff-card.builder {
    border-top: 4px solid #ff9800;
}

.staff-card.economist {
    border-top: 4px solid #ffd700;
}

.staff-card.event {
    border-top: 4px solid #9c27b0;
}

.staff-rank {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    opacity: 0.5;
}

.staff-avatar {
    font-size: 64px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--orange-primary));
}

.staff-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.staff-role {
    color: var(--orange-light);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

.staff-badge {
    display: inline-block;
    background: rgba(255, 140, 66, 0.2);
    border: 1px solid var(--orange-primary);
    border-radius: 40px;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--orange-light);
    margin-bottom: 15px;
}

.staff-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.staff-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.staff-social .social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.staff-social .social-link:hover {
    background: var(--orange-primary);
    color: white;
    transform: translateY(-3px);
}

/* Легенда */
.staff-legend {
    margin: 80px 0 40px;
}

.legend-card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(58, 110, 165, 0.1));
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: var(--border-radius-xl);
    padding: 50px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
}

.legend-card::before,
.legend-card::after {
    content: '"';
    position: absolute;
    font-size: 120px;
    color: var(--orange-primary);
    opacity: 0.2;
    font-family: serif;
}

.legend-card::before {
    top: 20px;
    left: 30px;
}

.legend-card::after {
    bottom: 20px;
    right: 30px;
    transform: rotate(180deg);
}

.legend-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--orange-primary);
    margin-bottom: 30px;
}

.legend-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.legend-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.legend-signature span:first-child {
    font-size: 24px;
    font-weight: 700;
    color: gold;
    text-shadow: 0 0 10px gold;
}

.legend-signature span:last-child {
    color: var(--text-muted);
    font-size: 14px;
}

/* Адаптация */
@media (max-width: 1024px) {
    .creator-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .creator-titles {
        justify-content: center;
    }

    .creator-description {
        margin-left: auto;
        margin-right: auto;
    }

    .creator-stats {
        justify-content: center;
    }

    .creator-runes {
        display: none;
    }
}

@media (max-width: 768px) {
    .staff-title {
        font-size: 36px;
    }

    .creator-name {
        font-size: 42px;
    }

    .creator-titles {
        flex-direction: column;
        align-items: center;
    }

    .staff-grid {
        grid-template-columns: 1fr;
    }

    .legend-card {
        padding: 30px 20px;
    }

    .legend-card::before,
    .legend-card::after {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .staff-title {
        font-size: 28px;
    }

    .creator-name {
        font-size: 32px;
    }

    .creator-avatar {
        width: 150px;
        height: 150px;
        font-size: 70px;
    }

    .creator-stats {
        gap: 15px;
    }

    .stat-value {
        font-size: 24px;
    }

    .staff-divider {
        gap: 8px;
    }

    .divider-rune {
        font-size: 20px;
    }

    .legend-title {
        font-size: 22px;
    }
}