
/* --- Profile Page Main Layout --- */
.profile-page-main {
    padding: 8rem 2rem 2rem; /* Padding to clear header */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Top Profile Header Section --- */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--lighter-bg);
    margin-bottom: 2rem;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--white);
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-username {
    font-size: 1.2rem;
    color: var(--secondary-text);
    margin-bottom: 1rem;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px;
}

.edit-profile-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    background-color: var(--lighter-bg);
    border: 1px solid var(--secondary-text);
    color: var(--primary-text);
}
.edit-profile-btn:hover {
    background-color: var(--darker-bg);
}


/* --- Profile Navigation --- */
.profile-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--lighter-bg);
    padding-bottom: 1rem;
}

.profile-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    padding-bottom: 1rem;
    color: var(--secondary-text);
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.profile-nav a:hover {
    color: var(--primary-text);
}

.profile-nav a.active {
    color: var(--primary-text);
    border-bottom-color: var(--primary-accent);
}

/* --- Profile Content Layout (Feed & Stats) --- */
.profile-content {
    display: flex;
    gap: 2rem;
}

.recent-activity {
    flex-basis: 65%;
}

.profile-stats {
    flex-basis: 35%;
}

.recent-activity h2,
.profile-stats h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* --- Recent Activity Feed Styling (Reused from home page) --- */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.activity-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.activity-content p {
    margin: 0;
    line-height: 1.4;
}

.activity-content a {
    color: var(--primary-text);
    font-weight: 500;
    text-decoration: underline;
}

.rating-stars {
    color: var(--star-color);
    font-weight: 500;
}

.activity-time {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

.activity-review {
    background-color: var(--lighter-bg);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-style: italic;
}

/* --- Statistics Section Styling --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    background-color: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.stat-label {
    font-size: 1rem;
    color: var(--secondary-text);
}

.profile-stats h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.genre-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.genre-tag {
    background-color: var(--lighter-bg);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}


/* --- Responsive Design for Profile Page --- */
@media (max-width: 900px) {
    .profile-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .profile-page-main {
        padding: 10rem 1rem 1rem;
    }
    .profile-header {
       flex-direction: column;
       text-align: center;
    }
    .edit-profile-btn {
        margin-top: 1rem;
    }
    .profile-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}