/* profile-modal.css - стили для модального окна профиля */

/* Оверлей модального окна */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.profile-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Контейнер модального окна */
.profile-modal-container {
    background: linear-gradient(135deg, #0c0c0c 0%, #080808 100%);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.profile-modal-overlay.active .profile-modal-container {
    transform: scale(1) translateY(0);
}

/* Заголовок */
.profile-modal-header {
    justify-content: center;
    display: flex;
    background: #000000;
    padding-left: 6px;
    height: 24px;
    padding: 0px 0px;
    border-bottom: 1px solid #303030;
}

.profile-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #d7fe7b 0%, #b8e35e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-modal-title svg {
    width: 18px;
    height: 18px;
    stroke: #d7fe7b;
}

.profile-modal-close {
    background: rgba(255, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 0, 0.8);
    color: #fff;
    cursor: pointer;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.25s ease;
}

.profile-modal-close svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
}

.profile-modal-close:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Контент */
.profile-modal-content {
    padding: 10px;
    gap: 5px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

/* Секции */
.profile-section {
    border: 1px solid #1b1b1b;
    background: #000000;
    border-radius: 3px;
    /* margin-bottom: 12px; */
    overflow: hidden;
}

.profile-section-header {
    background: #111111;
    padding: 0px 10px;
    height: 25px;
    border-bottom: 1px solid #303030;
    font-size: 12px;
    font-weight: 600;
    color: #d7fe7b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-section-header svg {
    width: 14px;
    height: 14px;
    stroke: #d7fe7b;
}

.profile-section-content {
    padding: 0px 3px;
}

/* Информационные строки */
.profile-info-row {
    display: flex;
    height: 30px;
    align-items: center;
    justify-content: space-between;
    padding: 0px 5px;
    border-bottom: 1px solid #1a1a1a;
    font-size: 12px;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-label {
    color: #888;
    font-weight: 400;
}

.profile-info-value > span {
    background: #171717;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px !important;
    border-radius: 2px;
    padding: 0px 8px !important;
}
.profile-info-value > div {
    height: 18px !important;
    padding: 0px 8px !important;
}
.profile-info-value {
    color: #e0e0e0;
    font-weight: 500;
    word-break: break-all;
    text-align: right;
    max-width: 60%;
}

.profile-info-value.hwid {
    /* font-family: monospace; */
    font-size: 10px;
    background: #000;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Аватар */
.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 12px;
    /* margin-bottom: 12px; */
}

.profile-avatar {
    width: 64px;
    height: 64px;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #303030;
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-letter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    color: #d7fe7b;
}

.profile-avatar img[src=""] + .profile-avatar-letter,
.profile-avatar img:not([src]) + .profile-avatar-letter {
    display: flex;
}

.profile-avatar-info {
    flex: 1;
}

.profile-avatar-info h3 {
    margin: 0 0 4px 0;
    font-size: 16px;
    color: #fff;
}

.profile-avatar-info p {
    margin: 0;
    font-size: 10px;
    color: #888;
}

/* Статус-бейджи */
.profile-status-badge {
    display: inline-block;
    /* padding: 2px 8px; */
    border-radius: 3px;
    font-size: 10px;
    font-weight: 400;
}

.profile-status-badge.active {
    /* background: rgba(215, 254, 123, 0.2); */
    color: #d7fe7b;
    /* border: 1px solid #d7fe7b; */
}

.profile-status-badge.expired {
    /* background: rgba(255, 100, 100, 0.2); */
    color: #ff8888;
    /* border: 1px solid #ff8888; */
}

.profile-status-badge.forever {
    /* background: rgba(215, 254, 123, 0.2); */
    color: #d7fe7b;
    /* border: 1px solid #d7fe7b; */
}

.profile-status-badge.banned {
    /* background: rgba(255, 50, 50, 0.2); */
    color: #ff6666;
    /* border: 1px solid #ff6666; */
}

/* Роль */
.profile-role {
    display: inline-block;
    /* padding: 2px 8px; */
    /* border-radius: 3px; */
    font-size: 10px;
    font-weight: 400;
}

.profile-role.creator {
    color: #ff99bb;
}

.profile-role.admin {
    color: #ffb347;
}

.profile-role.manager {
    color: #61edff;
}
.profile-role.media {
    color: #FF5454;
}
.profile-role.partner {
    color: #fb7aff;
}

.profile-role.player {
    color: #a7ff54;
}

.profile-role.banned {
    color: #ff6666;
}

/* Прогресс-бар */
.profile-progress-bar {
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.profile-progress-fill {
    height: 100%;
    background: #d7fe7b;
    width: 0%;
    transition: width 0.3s;
}

/* Ссылки */
.profile-links {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
    /* margin-top: 8px; */
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #000;
    border: 1px solid #303030;
    border-radius: 4px;
    font-size: 10px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
}

.profile-link svg {
    width: 12px;
    height: 12px;
}

.profile-link.discord {
    border-left: 3px solid #5865f2;
}

.profile-link.discord:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: #5865f2;
}

.profile-link.telegram {
    border-left: 3px solid #30a3e6;
}

.profile-link.telegram:hover {
    background: rgba(48, 163, 230, 0.2);
    border-color: #30a3e6;
}

/* Лоадер */
.profile-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
}

.profile-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #1a1a1a;
    border-top: 2px solid #d7fe7b;
    border-radius: 50%;
    animation: profileSpin 0.6s linear infinite;
}

@keyframes profileSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-loader p {
    margin: 0;
    font-size: 12px;
    color: #888;
}

/* Сообщение об ошибке */
.profile-error {
    text-align: center;
    padding: 30px;
    color: #ff6666;
}

.profile-error svg {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    stroke: #ff6666;
}

.profile-error p {
    margin: 0;
    font-size: 13px;
}

/* Секция бана */
.profile-ban-reason {
    background: #1A0505;
    border-left: 3px solid #ff4444;
    padding: 6px 8px;
    border-radius: 2px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
}

.profile-ban-reason .label {
    font-size: 9px;
    color: #ff8888;
    display: block;
}

.profile-ban-reason .reason {
    font-size: 11px;
    color: #ffaaaa;
}


.profile-ban-reason2 {
    position: relative;
    background: #1A0505;
    border-left: 3px solid #ff4444;
    padding: 8px 8px;
    max-height: 23px; /* вместо height */
    min-height: 23px;
    border-radius: 2px;
    display: flex;
    /* justify-content: center; */
    flex-direction: column;
    transition: max-height 0.3s ease; /* анимируем max-height */
    /* gap: 2px; */
    overflow: hidden; /* важно! */
}

.profile-ban-reason2::after {
    opacity: 1;
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to bottom, transparent, #1A0505);
    pointer-events: none; /* чтобы не мешать кликам */
    transition: all 0.3s;
}
.profile-ban-reason2:hover::after {
    opacity: 0;
}

.profile-ban-reason2:hover {
    max-height: 200px; /* достаточно большое значение */
}

.profile-ban-reason2 .label {
    font-size: 9px;
    color: #ff8888;
    display: block;
}

.profile-ban-reason2 .reason {
    font-size: 10px;
    color: #ffaaaa;
}
.admin_card{
    height: max-content;
}

.user-profile{
    cursor: unset;
}



/* Секция без данных */
.profile-no-data {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 12px;
}

/* Адаптация */
@media (max-width: 480px) {
    .profile-modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .profile-info-value {
        max-width: 55%;
        font-size: 11px;
    }
    
    .profile-info-row {
        font-size: 11px;
    }
}




@media (min-width: 900px) {
    .profile-modal-content {
        display: flex;
        flex-direction: row;
    }
    .profile-modal-container {
        max-width: 800px !important;
    }
    #profile-launches-section {
        width: 100%;
    }
    .infmod {
        width: 100%;
    }
    .profile-section {
        height: 100%;
    }
    .profile-launches-list, 
    .profile-launches-loading, .profile-launches-empty, .profile-launches-error{
        min-height: 300px !important;
        max-height: 50vh !important;
    }
}