/* ============================================
   Profile Page Styles
   ============================================ */

.profile-page {
    background-color: #EAEAEA;
}

/* ============================================
   Profile Hero Section
   ============================================ */
.profile-hero {
    position: relative;
    padding: 20px 0 40px;
    min-height: 500px;
}

.profile-hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.profile-hero__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-hero .container {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header with name */
.profile-hero__header {
    text-align: right;
    margin-bottom: 20px;
}

.profile-hero__name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Content layout */
.profile-hero__content {
    display: flex;
    gap: 30px;
}

/* ============================================
   Left Column - Avatar & Status
   ============================================ */
.profile-hero__left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-avatar {
    width: 100%;
}

.profile-avatar__image {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
}

.profile-status {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    position: relative;
    border-radius: 4px;
}

.profile-status__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    padding-right: 30px;
}

.profile-status__edit {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.profile-status__edit:hover {
    opacity: 1;
}

/* ============================================
   Right Column - Info Card
   ============================================ */
.profile-hero__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Actions */
.profile-actions {
    display: flex;
    gap: 15px;
}

.profile-action-item {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-action-item a {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: rgb(47, 47, 47);
    background-color: #cccad7;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.profile-action-item a:hover {
    background-color: #ac10ea;
    color: #fff;
}

/* Info Card */
.profile-info-card {
    background-color: rgba(234, 234, 234, 0.95);
    padding: 25px;
    border-radius: 4px;
}

/* Stats */
.profile-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d1d5db;
}

.profile-stat {
    text-align: center;
}

.profile-stat__value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: rgb(47, 47, 47);
    margin: 0 0 5px;
}

.profile-stat__label {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Details */
.profile-details {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.profile-details__main {
    flex: 1;
}

.profile-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.profile-detail__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-detail__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgb(47, 47, 47);
    margin: 0;
    line-height: 1.4;
}

.profile-detail-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

/* Achievements */
.profile-achievements {
    margin-top: 20px;
}

.profile-achievements__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: rgb(47, 47, 47);
    margin: 0 0 15px;
    text-align: center;
}

.profile-achievements__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.profile-achievement__icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.profile-achievements__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: rgb(47, 47, 47);
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

/* Level Badge */
.profile-level-badge {
    flex-shrink: 0;
}

.profile-level__image {
    width: 120px;
    height: auto;
}

/* Progress */
.profile-progress {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #d1d5db;
}

.profile-progress__text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: rgb(47, 47, 47);
    text-align: center;
    margin: 0 0 10px;
}

.profile-progress__xp {
    color: #ac10ea;
}

.profile-progress__bar {
    width: 100%;
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.profile-progress__bar::before,
.profile-progress__bar::after {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: rgb(47, 47, 47);
    top: 50%;
    transform: translateY(-50%);
}

.profile-progress__bar::before {
    content: '3';
    left: -20px;
}

.profile-progress__bar::after {
    content: '4';
    right: -20px;
}

.profile-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #ac10ea 0%, #530493 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

/* ============================================
   Profile Tabs
   ============================================ */
.profile-tabs {
    background-color: #cccad7;
    padding: 15px 0;
}

.profile-tabs__menu {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.profile-tabs__item {
    margin: 0;
}

.profile-tabs__item a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: rgb(47, 47, 47);
    text-decoration: none;
    padding: 10px 5px;
    position: relative;
    transition: color 0.3s ease;
}

.profile-tabs__item a:hover {
    color: #530493;
}

.profile-tabs__item--active a {
    color: #530493;
}

.profile-tabs__item--active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #ac10ea;
}

/* ============================================
   Profile Content
   ============================================ */
.profile-content {
    padding: 30px 0 60px;
}

.profile-content .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .profile-hero__content {
        gap: 20px;
    }
    
    .profile-hero__left {
        flex: 0 0 220px;
    }
    
    .profile-stats {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .profile-stat {
        flex: 0 0 calc(50% - 10px);
    }
    
    .profile-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-level-badge {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 15px 0 30px;
    }
    
    .profile-hero__content {
        flex-direction: column;
        align-items: center;
    }
    
    .profile-hero__left {
        flex: none;
        width: 100%;
        max-width: 280px;
    }
    
    .profile-hero__right {
        width: 100%;
    }
    
    .profile-hero__header {
        text-align: center;
    }
    
    .profile-hero__name {
        font-size: 20px;
    }
    
    .profile-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .profile-tabs__menu {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .profile-tabs__item a {
        font-size: 14px;
    }
    
    .profile-detail-row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .profile-hero__name {
        font-size: 18px;
    }
    
    .profile-stats {
        gap: 10px;
    }
    
    .profile-stat__value {
        font-size: 16px;
    }
    
    .profile-info-card {
        padding: 20px 15px;
    }
    
    .profile-tabs__menu {
        gap: 10px;
    }
    
    .profile-tabs__item a {
        font-size: 13px;
        padding: 8px 3px;
    }
}
