/* ===== PROFILE PAGE ===== */
.profile-page {
    padding: 20px 0;
    min-height: calc(100vh - 200px);
}

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

/* Profile Header */
.profile-header {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-dark) 100%);
    z-index: 0;
}

.profile-header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    background: var(--gray-100);
}

.profile-verified-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.profile-verified-badge i {
    color: white;
    font-size: 16px;
}

.profile-name-section {
    margin-bottom: 12px;
}

.profile-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-username {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.profile-account-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 8px;
}

.profile-account-type.privato {
    background: rgba(156, 39, 176, 0.1);
    color: #9C27B0;
    border-color: rgba(156, 39, 176, 0.3);
}

.profile-account-type.privato_verificato {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    border-color: rgba(33, 150, 243, 0.3);
}

.profile-account-type.professionista {
    background: rgba(238, 97, 72, 0.1);
    color: var(--primary-red);
    border-color: rgba(238, 97, 72, 0.3);
}

.profile-bio {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 600px;
    margin: 16px auto 0;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.profile-stat-card {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    text-align: center;
}

.profile-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.profile-stat-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.profile-stat-value.positive {
    color: var(--success);
}

.profile-stat-value.negative {
    color: var(--error);
}

.profile-stat-value.karma {
    color: var(--primary-red);
}

.profile-stat-details {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.profile-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: -2px;
}

.profile-tab:hover {
    color: var(--text-primary);
}

.profile-tab.active {
    color: var(--primary-red);
    border-bottom-color: var(--primary-red);
}

.profile-tab i {
    font-size: 16px;
}

/* Profile Content */
.profile-content {
    min-height: 400px;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

/* User Posts Feed */
.user-posts-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-posts-feed .post-card {
    margin-bottom: 0;
}

.no-posts-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-posts-message i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-posts-message p {
    font-size: 16px;
    margin: 0;
}

/* Profile About */
.profile-about {
    background: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.profile-about-section {
    margin-bottom: 24px;
}

.profile-about-section:last-child {
    margin-bottom: 0;
}

.profile-about-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-about-title i {
    color: var(--primary-red);
    font-size: 16px;
}

.profile-about-content {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.profile-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    flex-shrink: 0;
}

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

.profile-info-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Feedback Breakdown */
.feedback-breakdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.feedback-item {
    text-align: center;
    padding: 12px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.feedback-item-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.feedback-item-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.feedback-item.positive .feedback-item-value {
    color: var(--success);
}

.feedback-item.neutral .feedback-item-value {
    color: var(--warning);
}

.feedback-item.negative .feedback-item-value {
    color: var(--error);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 16px;
    }

    .profile-header {
        padding: 24px 20px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-tab {
        white-space: nowrap;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 20px 16px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-name {
        font-size: 20px;
    }

    .profile-stat-card {
        padding: 16px;
    }

    .profile-stat-value {
        font-size: 24px;
    }

    .feedback-breakdown {
        grid-template-columns: 1fr;
    }
}

