/* Profile page styles extracted from inline CSS */

/* Page container */
.profile-container { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* Layout containers */
.profile-header-panel {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* Пользовательский фон профиля */
.profile-header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.profile-header-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: blur(1px);
}

.profile-header-content {
    position: relative;
    z-index: 1;
}
.panel-blur {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}
.panel-center { text-align: center; }

/* Новая структура профиля - более компактная и красивая */
.profile-header-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-header-top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
}

.profile-avatar-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Имя пользователя под аватаром */
.profile-username {
    margin-top: 10px;
    margin-bottom: 0;
}

.profile-main-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}



.profile-header-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Старая структура - оставляем для совместимости */
.profile-info-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: start;
}

.avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid rgba(255,255,255,0.2);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}
.avatar-large img { width: 100%; height: 100%; object-fit: cover; }

/* Аватар оверлей с иконкой настроек */
.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 50%;
    backdrop-filter: blur(2px);
}

.avatar-large:hover {
    transform: scale(1.05);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.avatar-large:hover .avatar-overlay {
    opacity: 1;
    visibility: visible;
}

.avatar-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.avatar-settings-btn i {
    font-size: 2em;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transition: all 0.3s ease;
    transform: scale(0.8);
    opacity: 0.8;
}

.avatar-settings-btn:hover i {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Анимация вращения иконки при наведении */
.avatar-large:hover .avatar-settings-btn i {
    animation: spin 2s linear infinite;
    transform: scale(1);
    opacity: 1;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-meta {
    color: #ccc;
    text-align: left;
}
.profile-meta .meta-item { margin-bottom: 8px; }
.profile-meta .meta-item i {
    margin-right: 10px;
    color: #00d4ff;
}

.profile-username {
    font-size: 1.8em;
    margin: 10px 0 0 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(0,212,255,0.5);
    text-align: center;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
}
.stat-item {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.stat-item .stat-number { font-size: 1.6em; font-weight: bold; color: #00d4ff; }
.stat-item .stat-label { color: #ccc; font-size: 0.9em; }

.stat-item:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(0,212,255,0.35);
    box-shadow: 0 6px 22px rgba(0,212,255,0.18), inset 0 0 0 1px rgba(255,255,255,0.04);
    transform: translateY(-2px);
}

/* Sections grid */
.profile-sections { display: grid; gap: 30px; }
.profile-section { padding: 25px; }
.profile-section--activity { height: 540px; overflow: hidden; }
.profile-section--achievements { height: 300px; overflow: hidden; }

.section-title {
    margin: 0 0 20px 0;
    color: #fff;
    font-size: 1.5em;
}
.section-title i { margin-right: 10px; color: #00d4ff; }
.section-title--lg { font-size: 1.8em; }
.panel-center { text-align: center; }
.panel-note { margin-top: 20px; padding: 15px; }
.auth-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.profile-avatar { text-align: center; }
.subsection-title { color: #fff; margin-bottom: 15px; font-size: 1.2em; }

/* Activity blocks */
.activity-blocks-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.box-scroll {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    height: 375px;
    overflow-y: auto;
}
.comments-list { display: grid; gap: 8px; }
.comment-item-box {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}
.comment-item-box:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(0,212,255,0.3);
}
.comment-text { color: #fff; margin-bottom: 8px; line-height: 1.3; font-size: 0.85em; }
.comment-meta { display: flex; justify-content: space-between; align-items: center; color: #ccc; font-size: 0.75em; }
.comment-meta .post-title { color: #00d4ff; font-weight: 500; }

.placeholder-card {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 375px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.placeholder-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(0,212,255,0.2); }
.placeholder-card .icon-muted { opacity: 0.6; color: #00d4ff; font-size: 2em; margin-bottom: 10px; }
.placeholder-card p { color: #aaa; margin: 0; font-size: 0.9em; }

/* Achievements */
.achievements-content {
    color: #ccc;
    text-align: center;
    padding: 40px 20px;
    height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.achievements-content i { font-size: 3.5em; color: #00d4ff; margin-bottom: 15px; opacity: 0.5; }

/* Integrations */
.integrations-section { padding: 30px; }
.integrations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.integration-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 15px; padding: 25px; text-align: center; }
.integration-card { transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.integration-card:hover { background: rgba(255,255,255,0.12); border-color: rgba(0,212,255,0.3); box-shadow: 0 8px 26px rgba(0,212,255,0.18); transform: translateY(-2px); }
.integration-card--disabled { opacity: 0.6; }
.integration-header { margin-bottom: 20px; }
.steam-error { background: rgba(255, 0, 0, 0.1); border: 1px solid rgba(255, 0, 0, 0.3); border-radius: 10px; padding: 15px; margin-bottom: 20px; color: #ff6b6b; text-align: center; }
.steam-success { background: rgba(0, 255, 0, 0.1); border: 1px solid rgba(0, 255, 0, 0.3); border-radius: 10px; padding: 15px; margin-bottom: 20px; color: #4ecdc4; text-align: center; }
.steam-error i, .steam-success i { margin-right: 8px; }
.steam-avatar img { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #00d4ff; box-shadow: 0 0 20px rgba(0,212,255,0.3); }
.steam-placeholder .icon { font-size: 2.5em; color: #666; }
.steam-text { color: #ccc; margin-bottom: 20px; font-size: 0.95em; }
.steam-name { color: #fff; font-weight: 600; margin-bottom: 8px; font-size: 1.1em; }
.steam-id { color: #ccc; font-size: 0.9em; margin-bottom: 12px; }
.steam-link { color: #00d4ff; text-decoration: none; font-size: 0.95em; padding: 8px 16px; border: 1px solid #00d4ff; border-radius: 8px; transition: all 0.3s ease; display: inline-block; }
.steam-link:hover { background: #00d4ff; color: #000; }
.btn-block { width: 100%; padding: 12px; font-size: 1em; border-radius: 8px; }



/* Additional utility classes for remaining inline styles */
.empty-state { color: #ccc; padding: 20px; font-style: italic; }
.empty-state i { font-size: 1.5em; margin-bottom: 8px; opacity: 0.5; }
.empty-state p { font-size: 0.9em; }
.steam-info { margin-bottom: 20px; }
.steam-avatar { margin-bottom: 15px; }
.steam-placeholder { margin-bottom: 20px; }
.steam-placeholder .placeholder-icon { 
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    border: 2px dashed #666; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto; 
    opacity: 0.5; 
}
.steam-fallback-avatar {
    width: 80px; 
    height: 80px; 
    border-radius: 50%; 
    border: 3px solid #00d4ff; 
    background: linear-gradient(45deg, #00d4ff, #4ecdc4); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: 0 auto;
}
.steam-fallback-avatar i { font-size: 2.5em; color: #fff; }
.achievements-title { color: #fff; margin-bottom: 10px; font-size: 1.2em; }
.achievements-desc { color: #aaa; margin: 0; font-size: 0.9em; line-height: 1.4; max-width: 280px; }
.integration-subtitle { color: #ccc; margin: 8px 0 0 0; font-size: 0.9em; }
.integration-placeholder { color: #999; font-size: 0.9em; font-style: italic; }
.integration-placeholder h3 { color: #ccc; margin: 0; font-size: 1.4em; }
.integration-placeholder p { color: #999; margin: 8px 0 0 0; font-size: 0.9em; }
.integration-placeholder-title { color: #ccc; margin: 0; font-size: 1.4em; }
.integration-placeholder-subtitle { color: #999; margin: 8px 0 0 0; font-size: 0.9em; }

/* Additional classes for remaining inline styles */
.profile-placeholder-icon { font-size: 5em; color: #00d4ff; margin-bottom: 20px; opacity: 0.7; }
.profile-placeholder-title { color: #fff; margin-bottom: 15px; font-size: 2em; }
.profile-placeholder-desc { color: #ccc; margin-bottom: 25px; font-size: 1.1em; }
.auth-button { padding: 12px 25px; font-size: 1.1em; }
.auth-button i { margin-right: 8px; }
.panel-note p { color: #aaa; font-size: 0.9em; margin: 0; }
.panel-note i { margin-right: 8px; }
.subsection-icon { margin-right: 8px; }
.steam-icon-large { font-size: 3em; color: #00d4ff; margin-bottom: 15px; }
.steam-link-icon { margin-right: 6px; }
.steam-button-icon { margin-right: 8px; }
.plus-icon { font-size: 3em; color: #666; margin-bottom: 15px; }

/* Level Ranks fallback */
.level-ranks-note { color: #ccc; padding: 20px; }
.level-ranks-note-icon { font-size: 2em; margin-bottom: 15px; color: #4ecdc4; }

/* Maps UI */
.map-title-rounds { display: inline-flex; align-items: center; gap: 6px; }
.map-trophy-badge { display: inline-flex; align-items: center; gap: 4px; }
.map-trophy-badge i { font-size: 0.6em; }
.map-wins { font-size: 0.85em; color: #fff; }

/* Scrollbar for activity comments */
.activity-comments::-webkit-scrollbar {
    width: 6px;
}
.activity-comments::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}
.activity-comments::-webkit-scrollbar-thumb {
    background: rgba(0,212,255,0.5);
    border-radius: 3px;
    transition: background 0.3s ease;
}
.activity-comments::-webkit-scrollbar-thumb:hover {
    background: rgba(0,212,255,0.7);
}

/* Comment list hover effects */
.comment-item {
    transform: translateY(0);
    transition: all 0.3s ease;
}
.comment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,212,255,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .profile-section {
        height: auto !important;
        min-height: 300px;
    }
    .activity-comments {
        height: auto !important;
        max-height: 300px;
    }
    .profile-info-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .integrations-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .integration-card {
        padding: 20px !important;
    }
    
    /* Новая структура на мобильных */
    .profile-header-top {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }
    
    .profile-header-bottom {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }
    
    .profile-avatar-section {
        gap: 10px !important;
    }
    
    .avatar-large {
        width: 100px !important;
        height: 100px !important;
    }
    
    .avatar-settings-btn i {
        font-size: 1.5em !important;
    }
}

/* Social buttons */
.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: transform 0.15s ease;
    cursor: pointer;
    border: none;
    font-size: 13px;
}

.social-btn:hover {
    transform: translateY(-2px);
}

.social-btn i {
    font-size: 14px;
}

/* Social network specific colors */
.social-btn.vk {
    background: #2787f5;
}

.social-btn.discord {
    background: #5865f2;
}

.social-btn.telegram {
    background: #26a5e4;
}

.social-btn.steam {
    background: #1b2838;
}

/* Discord copy functionality */
.social-btn.discord-copy {
    cursor: pointer;
    position: relative;
}

.social-btn.discord-copy:hover {
    background: #4752c4;
}

.social-btn.discord-copy::after {
    content: "Скопировано!";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.social-btn.discord-copy.copied::after {
    opacity: 1;
    visibility: visible;
}

/* Telegram copy functionality */
.social-btn.telegram-copy {
    cursor: pointer;
    position: relative;
}

.social-btn.telegram-copy:hover {
    background: #1f8db3;
}

.social-btn.telegram-copy::after {
    content: "Скопировано!";
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.social-btn.telegram-copy.copied::after {
    opacity: 1;
    visibility: visible;
}

/* Social buttons responsive */
@media (max-width: 768px) {
    .social-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}


