/* Profile Page Styles */

.profile-page {
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
}

.profile-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.profile-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* Preview Card */
.profile-preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.profile-preview-card h2 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.profile-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preview-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.preview-info {
    width: 100%;
}

.preview-display-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.preview-username {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.preview-bio {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    min-height: 60px;
}

/* Editor Card */
.profile-editor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    width: 100%;
    max-width: 800px;
}

.profile-editor-card h2 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.editor-section {
    margin-bottom: 2rem;
}

.editor-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* Avatar Editor */
.avatar-editor {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.current-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

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

.avatar-options {
    flex: 1;
}

.btn-change-avatar {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-change-avatar:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.avatar-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Input Fields */
.profile-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    transition: all 0.2s;
}

.profile-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.profile-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s;
}

.profile-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.profile-readonly {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 1rem;
}

.input-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Actions */
.profile-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-cancel {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-save-profile {
    padding: 0.75rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save-profile:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 968px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-preview-card {
        position: relative;
        top: 0;
    }
}


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

    .profile-header {
        padding: 1rem;
    }

    .profile-header h1 {
        font-size: 1.5rem;
    }

    .profile-content {
        padding: 1rem;
    }

    .profile-card {
        padding: 1.25rem;
    }

    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-info h2 {
        font-size: 1.25rem;
    }

    .profile-info p {
        font-size: 0.85rem;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .profile-actions .btn-primary,
    .profile-actions .btn-secondary {
        width: 100%;
    }
}
