/* Profile Module Styles */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .profile-grid { grid-template-columns: 1fr; }
}

.profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.avatar-upload-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
}

.profile-avatar-large {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.file-input-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-badge {
    position: absolute;
    bottom: 0; right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    z-index: 1;
    transition: var(--transition-smooth);
}

.file-input-overlay:hover ~ .upload-badge {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.membership-badge {
    margin-top: 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-success);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.profile-settings {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

/* Toggle Switch Styling */
.toggle-switch {
    display: inline-block;
    width: 50px;
    height: 28px;
    position: relative;
}

.toggle-switch input { display: none; }

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    transition: .4s;
    border-radius: 34px;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input:checked + .slider {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(20px);
    background-color: white;
}

/* Color Picker */
.color-picker-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.color-radio {
    display: none;
}

.color-bubble {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.color-bubble:hover {
    transform: scale(1.1);
}

.color-radio:checked + .color-bubble {
    border-color: white;
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--bg-secondary);
    transform: scale(1.15);
}
