/* --- PROFILE PAGE STYLES (Public View) --- */

.profile-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.profile-header h1 {
    font-size: 3em;
    margin-bottom: 5px;
}
.profile-header .nav-button {
    margin-top: 15px;
    font-size: 0.9em;
}
.profile-meta {
    opacity: 0.7;
    font-size: 1.1em;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 1.1em;
}
.profile-stats a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}
.profile-stats a:hover span {
    opacity: 0.7;
}
.profile-stats span {
    opacity: 0.8;
}
.profile-stats strong {
    color: var(--text-color);
    font-weight: 600;
}

.profile-actions {
    margin-top: 25px;
}
.profile-actions .follow-form {
    display: inline-block;
    margin: 0;
}
.profile-actions .button-action {
    font-size: 1em;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}
.profile-actions .button-action i {
    margin-right: 6px;
}
.profile-actions .button-follow {
    background-color: var(--nav-bg);
    color: var(--nav-text);
}
.profile-actions .button-follow:hover {
    background-color: var(--container-bg);
    color: var(--nav-bg);
    border-color: var(--nav-bg);
}
.profile-actions .button-unfollow {
    background-color: var(--container-bg);
    color: var(--text-color);
    border-color: var(--form-border-color);
}
.profile-actions .button-unfollow:hover {
    background-color: var(--bg-color);
    border-color: var(--text-color);
}

.section-title {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 1px solid var(--shadow-color);
    padding-bottom: 10px;
}

/* --- Song Card Grid --- */
.public-songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.song-card {
    background-color: var(--container-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: transform 0.2s ease;
}

.song-card:hover {
    transform: translateY(-5px);
}

.song-cover-wrapper {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
}

.song-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.song-card-info {
    padding: 15px;
}

.song-card-info h3 {
    margin-top: 0;
    font-size: 1.3em;
    color: var(--text-color);
}

.card-artist {
    opacity: 0.7;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.card-links a {
    font-size: 1.4em;
    margin-right: 12px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.card-links a:hover {
    opacity: 1;
}

/* --- Song Card Like Styles --- */
.song-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--form-border-color);
}
.like-count {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    font-weight: 500;
    opacity: 0.8;
}
.like-count i {
    margin-right: 6px;
    color: var(--alert-danger-text);
    opacity: 0.7;
}
.like-form {
    margin: 0;
}
.button-like {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.4em;
    color: var(--text-color);
    opacity: 0.7;
    padding: 0;
    transition: all 0.2s ease;
}
.button-like:hover {
    opacity: 1;
    transform: scale(1.1);
}
.button-like.liked {
    color: var(--alert-danger-text);
    opacity: 1;
}


/* --- Follow List (Followers/Following) --- */
.user-list-container {
    max-width: 600px;
}
.user-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--form-border-color);
}
.user-list-item:last-child {
    border-bottom: none;
}
.user-list-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-list-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--form-border-color);
}
.user-list-username {
    font-size: 1.1em;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-color);
}
.user-list-username:hover {
    text-decoration: underline;
}