/* === PROFILE PAGE STYLES === */

/* Override main-content centering for profile page - allows scrolling for tall content */
body:has(.profile-content) .main-content {
    justify-content: flex-start;
    padding-top: 5rem;
    padding-bottom: 3rem;
}

.profile-content {
    max-width: 600px;
    margin: 0 auto;
}

.profile-section {
    background: var(--color-bg);
    border: 3px solid var(--color-text);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.profile-section h2 {
    color: var(--color-title);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.profile-section h3 {
    color: var(--color-title);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* === PROFILE HEADER === */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border: 3px solid var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text);
}

.profile-info .email,
.profile-info .member-since {
    color: var(--color-text);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--color-surface, #ffffff);
    border: 2px solid var(--color-text);
    padding: 1rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-title);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text);
    opacity: 0.7;
}

/* === PROFILE FORM === */
.profile-form .form-group {
    margin-bottom: 1rem;
}

.profile-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-weight: 500;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-text);
    background: var(--color-surface, #ffffff);
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--color-title);
}

/* === PROFILE BUTTONS === */
.btn-save {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-save:hover {
    background: var(--color-title);
}

.btn-logout {
    border-color: var(--color-error, #ef4444);
    color: var(--color-error, #ef4444);
}

.btn-logout:hover {
    background: color-mix(in srgb, var(--color-error, #ef4444) 10%, var(--color-surface, #ffffff));
}

/* === CONNECTED ACCOUNTS === */
.connected-accounts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-text);
}

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

.connected-badge {
    background: var(--color-hover);
    color: var(--color-text);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.no-accounts {
    color: var(--color-text);
    opacity: 0.7;
    margin-bottom: 1rem;
}

/* === ACCOUNT ACTIONS === */
.account-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-description {
    color: var(--color-text);
    opacity: 0.8;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.privacy-note {
    margin-top: 1rem;
    font-size: 0.85rem;
}

.privacy-note a {
    color: var(--color-text);
    text-decoration: underline;
}

.privacy-note a:hover {
    color: var(--color-title);
}

/* === AUTH BUTTONS FOR LOGGED OUT STATE === */
.auth-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
